mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
44 lines
969 B
Bash
44 lines
969 B
Bash
# $Id$
|
|
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - make -j1
|
|
|
|
pkgname=libphonenumber
|
|
pkgver=8.0.0
|
|
pkgrel=1
|
|
pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers"
|
|
url="https://github.com/googlei18n/libphonenumber"
|
|
arch=(i686 x86_64)
|
|
depends=(icu protobuf boost-libs)
|
|
makedepends=(boost cmake gtest git java-environment)
|
|
license=("Apache")
|
|
_commit=1eb06f31e1dd3ee3ce699d095a0ad4f281ee0f2c # tags/v8.0.0^0
|
|
source=("git+$url#commit=$_commit")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
CXXFLAGS+=" -Wno-error=deprecated-declarations" # readdir_r deprecation
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname/cpp
|
|
make -j1
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
make tests
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
}
|