1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
7 pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers"
8 url="https://github.com/googlei18n/libphonenumber"
22 _commit=07cd7bbb8a2faf9f2ef7c338e66f2ba303dfad0f # tags/v8.13.8^0
23 source=("git+$url#commit=$_commit")
28 git describe --tags | sed 's/^libphonenumber-\|^v//;s/[^-]*-g/r&/;s/-/+/g'
34 # Fix build with abseil-cpp 2023
35 sed -e 's|CMAKE_CXX_STANDARD 11|CMAKE_CXX_STANDARD 17|' -i tools/cpp/CMakeLists.txt
40 -DCMAKE_INSTALL_PREFIX=/usr
41 -DCMAKE_BUILD_TYPE=None
42 -DCMAKE_CXX_STANDARD=17
47 cmake -S $pkgname/cpp -B build "${cmake_options[@]}"
52 cmake --build build --target tests
56 depends+=(libicu{uc,i18n}.so libprotobuf.so)
57 provides+=(libgeocoding.so libphonenumber.so)
59 DESTDIR="$pkgdir" cmake --install build
62 # vim:set sw=2 sts=-1 et: