mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-16 23:57:11 +00:00
added extra/libphonenumber
This commit is contained in:
parent
b122ea7889
commit
364b47119b
1 changed files with 38 additions and 0 deletions
38
extra/libphonenumber/PKGBUILD
Normal file
38
extra/libphonenumber/PKGBUILD
Normal file
|
@ -0,0 +1,38 @@
|
|||
# $Id$
|
||||
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - split make steps so concurrency works reliably
|
||||
|
||||
pkgname=libphonenumber
|
||||
pkgver=7.2.5
|
||||
pkgrel=2
|
||||
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)
|
||||
url="https://github.com/googlei18n/libphonenumber"
|
||||
license=("Apache")
|
||||
source=("$url/archive/$pkgname-$pkgver.tar.gz")
|
||||
sha256sums=('2d9d613bfb3611909ec681fd3e328bb0ec5e2fbcf12539599ae67a4446361d3a')
|
||||
|
||||
prepare() {
|
||||
mkdir -p build
|
||||
}
|
||||
|
||||
build() {
|
||||
cd build
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname-$pkgname-$pkgver/cpp
|
||||
make generate_geocoding_data
|
||||
make all
|
||||
}
|
||||
|
||||
check() {
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd build
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
Loading…
Reference in a new issue