extra/libphonenumber to 7.7.0-1

This commit is contained in:
Kevin Mihelich 2016-09-25 21:42:16 +00:00
parent a6bb70f46e
commit cca8918151

View file

@ -5,16 +5,22 @@
# - make -j1 # - make -j1
pkgname=libphonenumber pkgname=libphonenumber
pkgver=7.5.2 pkgver=7.7.0
pkgrel=1 pkgrel=1
pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers" pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers"
arch=(i686 x86_64) arch=(i686 x86_64)
depends=(icu protobuf boost-libs) depends=(icu protobuf boost-libs)
makedepends=(boost cmake gtest) makedepends=(boost cmake gtest git java-environment)
url="https://github.com/googlei18n/libphonenumber" url="https://github.com/googlei18n/libphonenumber"
license=("Apache") license=("Apache")
source=("$url/archive/$pkgname-$pkgver.tar.gz") _commit=1ec4d341c3cd13dc2ae05e0b372e85edfb41ee80
sha256sums=('c116c1299074b10ed8b862221ca57f822bae7637b717706ff2c71350f430b3b1') source=("git+$url#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^libphonenumber-//;s/-/+/g'
}
prepare() { prepare() {
mkdir -p build mkdir -p build
@ -23,7 +29,7 @@ prepare() {
build() { build() {
cd build cd build
CXXFLAGS+=" -Wno-error=deprecated-declarations" # readdir_r deprecation CXXFLAGS+=" -Wno-error=deprecated-declarations" # readdir_r deprecation
cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname-$pkgname-$pkgver/cpp cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname/cpp
make -j1 make -j1
} }