# Contributor: Bhushan Shah # Maintainer: Bart Ribbers pkgname=libphonenumber pkgver=8.11.4 pkgrel=3 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" builddir="$srcdir/$pkgname-$pkgver/cpp" build() { cmake -B build . \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make -C build } check() { ./build/libphonenumber_test } package() { make -C build DESTDIR="$pkgdir" install } sha512sums="6ef958db4b9470a3bfc8cc7169213ef0a7e90247f3e1911e179602810b2a8f8c227422c4f624aa5eb32497712fae878f1cfc053b9189cdc2d4102aa73c6dcfd1 libphonenumber-8.11.4.tar.gz"