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