# Contributor: Bhushan Shah # Maintainer: Bart Ribbers pkgname=libphonenumber pkgver=8.10.17 pkgrel=0 pkgdesc="Library for parsing, formatting, and validating international phone numbers." url="https://github.com/googlei18n/libphonenumber" arch="all" license="Apache-2.0" depends_dev="boost-dev protobuf-dev icu-dev" makedepends="$depends_dev cmake gtest-dev" checkdepends="gtest" subpackages="$pkgname-static $pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/googlei18n/$pkgname/archive/v$pkgver.tar.gz" build() { cd "$builddir/cpp" cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir/cpp" ./libphonenumber_test } package() { cd "$builddir/cpp" DESTDIR="$pkgdir" make install } sha512sums="c459779d2aed0e7a37a19c3624f4fa5fb35198bacd635e7847023a6bc737d18fb80721373f86df789f7131c73acbdeec0d250d0f423ef167b07981a16ec99b52 libphonenumber-8.10.17.tar.gz"