# Description: Google's common library for parsing, formatting, and validating international phone numbers # URL: https://github.com/googlei18n/libphonenumber # Maintainer: CRUX KDE Ports, kde-ports at crux dot nu # Depends on: icu openjdk20-jdk protobuf name=libphonenumber version=8.13.42 release=1 source=(https://github.com/google/libphonenumber/archive/v$version/$name-$version.tar.gz) build() { export PATH="/usr/lib/java/openjdk20-jdk/bin:/usr/bin:/bin:/usr/sbin:/sbin" cmake -S $name-$version/cpp -B build -G Ninja \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_INSTALL_LIBDIR=lib \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \ -D CMAKE_CXX_STANDARD=17 \ -D USE_BOOST=OFF \ -D USE_STDMUTEX=ON \ -D BUILD_TESTING=OFF \ -Wno-dev cmake --build build DESTDIR=$PKG cmake --install build } # vim: set ts=4 et: