PKGBUILDs/extra/libphonenumber/PKGBUILD

38 lines
805 B
Bash
Raw Normal View History

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
2016-08-02 12:24:25 +00:00
pkgver=7.5.1
2016-06-28 12:33:52 +00:00
pkgrel=1
2016-04-10 01:51:23 +00:00
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")
2016-08-02 12:24:25 +00:00
sha256sums=('42bb57b8c582920fc2d96ed1db07bc4792ec0731bc0f1f24dbc1e177f99bb77d')
2016-04-10 01:51:23 +00:00
prepare() {
mkdir -p build
}
build() {
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname-$pkgname-$pkgver/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
}