Date: Friday, May 29, 2020 @ 18:29:23 Author: lfleischer Revision: 387857
db-move: moved libphonenumber from [staging] to [testing] (x86_64) Added: libphonenumber/repos/testing-x86_64/ libphonenumber/repos/testing-x86_64/PKGBUILD (from rev 387856, libphonenumber/repos/staging-x86_64/PKGBUILD) Deleted: libphonenumber/repos/staging-x86_64/ ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Copied: libphonenumber/repos/testing-x86_64/PKGBUILD (from rev 387856, libphonenumber/repos/staging-x86_64/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2020-05-29 18:29:23 UTC (rev 387857) @@ -0,0 +1,41 @@ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steff...@gmail.com> + +pkgname=libphonenumber +pkgver=8.12.3 +pkgrel=1 +pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers" +url="https://github.com/googlei18n/libphonenumber" +arch=(x86_64) +license=(Apache) +depends=(icu protobuf boost-libs) +makedepends=(boost cmake gtest git 'java-environment>=9') +provides=(libgeocoding.so libphonenumber.so) +_commit=4de1416d3555405b0068daabddef56a1ee80d7d3 # tags/v8.12.3^0 +source=("git+$url#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g' +} + +prepare() { + cd $pkgname +} + +build() { + CXXFLAGS+=" -Wno-error=deprecated-declarations" # readdir_r deprecation + CXXFLAGS+=" -Wno-error=unused-variable" # this is nuts + cmake -H$pkgname/cpp -Bbuild \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib + cmake --build build +} + +check() { + cmake --build build --target tests +} + +package() { + DESTDIR="$pkgdir" cmake --build build --target install +}