2016-04-10 01:51:23 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2016-04-10 18:42:24 +00:00
|
|
|
# - make -j1
|
2016-04-10 01:51:23 +00:00
|
|
|
|
|
|
|
pkgname=libphonenumber
|
2017-01-12 13:42:35 +00:00
|
|
|
pkgver=8.0.0
|
|
|
|
pkgrel=1
|
2016-04-10 01:51:23 +00:00
|
|
|
pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers"
|
2016-11-21 13:23:30 +00:00
|
|
|
url="https://github.com/googlei18n/libphonenumber"
|
2016-04-10 01:51:23 +00:00
|
|
|
arch=(i686 x86_64)
|
|
|
|
depends=(icu protobuf boost-libs)
|
2016-09-25 21:42:16 +00:00
|
|
|
makedepends=(boost cmake gtest git java-environment)
|
2016-04-10 01:51:23 +00:00
|
|
|
license=("Apache")
|
2017-01-12 13:42:35 +00:00
|
|
|
_commit=1eb06f31e1dd3ee3ce699d095a0ad4f281ee0f2c # tags/v8.0.0^0
|
2016-09-25 21:42:16 +00:00
|
|
|
source=("git+$url#commit=$_commit")
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
2016-11-21 13:23:30 +00:00
|
|
|
git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g'
|
2016-09-25 21:42:16 +00:00
|
|
|
}
|
2016-04-10 01:51:23 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
2016-09-10 17:36:15 +00:00
|
|
|
CXXFLAGS+=" -Wno-error=deprecated-declarations" # readdir_r deprecation
|
2016-09-25 21:42:16 +00:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname/cpp
|
2016-06-28 12:33:52 +00:00
|
|
|
make -j1
|
2016-04-10 01:51:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd build
|
2016-06-28 12:33:52 +00:00
|
|
|
make tests
|
2016-04-10 01:51:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|