[arch-commits] Commit in libphonenumber/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sun Nov 12 13:13:01 UTC 2017
Date: Sunday, November 12, 2017 @ 13:12:57
Author: foutrelis
Revision: 309620
archrelease: copy trunk to staging-x86_64
Added:
libphonenumber/repos/staging-x86_64/
libphonenumber/repos/staging-x86_64/PKGBUILD
(from rev 309619, libphonenumber/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: libphonenumber/repos/staging-x86_64/PKGBUILD (from rev 309619, libphonenumber/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-11-12 13:12:57 UTC (rev 309620)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.8.4
+pkgrel=2
+pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers"
+url="https://github.com/googlei18n/libphonenumber"
+arch=(i686 x86_64)
+license=(Apache)
+depends=(icu protobuf boost-libs)
+makedepends=(boost cmake gtest git 'java-environment>=9' ninja)
+_commit=6956282aeae9b1f440f88434f1487e410023339b # tags/v8.8.4^0
+source=("git+$url#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g'
+}
+
+prepare() {
+ mkdir build
+}
+
+build() {
+ cd build
+ CXXFLAGS+=" -Wno-error=deprecated-declarations" # readdir_r deprecation
+ CXXFLAGS+=" -Wno-error=unused-variable" # this is nuts
+ cmake ../$pkgname/cpp -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ ninja
+}
+
+check() {
+ cd build
+ ninja tests
+}
+
+package() {
+ cd build
+ DESTDIR="$pkgdir" ninja install
+}
More information about the arch-commits
mailing list