# Contributor: Bhushan Shah # Maintainer: Bart Ribbers pkgname=libphonenumber pkgver=8.11.4 pkgrel=2 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" # TODO: Switch to the CMake None build type. 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="6ef958db4b9470a3bfc8cc7169213ef0a7e90247f3e1911e179602810b2a8f8c227422c4f624aa5eb32497712fae878f1cfc053b9189cdc2d4102aa73c6dcfd1 libphonenumber-8.11.4.tar.gz"