mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
extra/libphonenumber to 7.7.0-1
This commit is contained in:
parent
a6bb70f46e
commit
cca8918151
1 changed files with 11 additions and 5 deletions
|
@ -5,16 +5,22 @@
|
|||
# - make -j1
|
||||
|
||||
pkgname=libphonenumber
|
||||
pkgver=7.5.2
|
||||
pkgver=7.7.0
|
||||
pkgrel=1
|
||||
pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers"
|
||||
arch=(i686 x86_64)
|
||||
depends=(icu protobuf boost-libs)
|
||||
makedepends=(boost cmake gtest)
|
||||
makedepends=(boost cmake gtest git java-environment)
|
||||
url="https://github.com/googlei18n/libphonenumber"
|
||||
license=("Apache")
|
||||
source=("$url/archive/$pkgname-$pkgver.tar.gz")
|
||||
sha256sums=('c116c1299074b10ed8b862221ca57f822bae7637b717706ff2c71350f430b3b1')
|
||||
_commit=1ec4d341c3cd13dc2ae05e0b372e85edfb41ee80
|
||||
source=("git+$url#commit=$_commit")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd $pkgname
|
||||
git describe --tags | sed 's/^libphonenumber-//;s/-/+/g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
mkdir -p build
|
||||
|
@ -23,7 +29,7 @@ prepare() {
|
|||
build() {
|
||||
cd build
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue