# Contributor: Bhushan Shah # Maintainer: Bart Ribbers pkgname=libphonenumber pkgver=8.11.1 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/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="af34e2c9a3230ed4f5010ee56d3ebb1fba3beb695299d652a77fa7811f70903c6f5b1e3ae8c56820fd83c3b84513bdaf7f78a0069a023739d3d53bf2ac55ac1e libphonenumber-8.11.1.tar.gz"