pmaports/temp/libphonenumber/APKBUILD
Oliver Smith 07653d60a8
temp/libphonenumber: fork from Alpine
Needs a pkgrel bump because dependency libboost was upgraded. This is
currently breaking everything depending on libphonenumber, for example
plasma mobile.

>>> postmarketos-ui-plasma-mobile: Analyzing dependencies...
ERROR: unsatisfiable constraints:
  so:libprotobuf.so.20 (missing):
    required by: libphonenumber-8.10.21-r0[so:libprotobuf.so.20]
>>> ERROR: postmarketos-ui-plasma-mobile: builddeps failed
2019-10-23 21:16:44 +02:00

34 lines
982 B
Text

# Forked from Alpine, needs pkgrel bump after boost soname change
pkgname=libphonenumber
pkgver=8.10.21
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"
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="791c3dd2f4ce2abecafac1ca2b61708152c6b51f3a417084e0163322980e83297f75e48fa71f6fa2f6fcd20fdaa233bd1f99a2ce499aec56a785cbd1fedc2662 libphonenumber-8.10.21.tar.gz"