# Contributor: Bhushan Shah # Maintainer: Bart Ribbers pkgname=libphonenumber pkgver=8.10.18 pkgrel=1 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/libphonenumber/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="3c45b353cc1a3ac897c9fe59d01c643753f27656d6f42c1733700b478a8a6b9d3c0b204b7276dc8f91c5e827742feb597b90361255217949c17d64daffbec649 libphonenumber-8.10.18.tar.gz"