[arch-commits] Commit in libphonenumber/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Aug 6 16:26:04 UTC 2018
Date: Monday, August 6, 2018 @ 16:26:04
Author: felixonmars
Revision: 330997
archrelease: copy trunk to staging-x86_64
Added:
libphonenumber/repos/staging-x86_64/
libphonenumber/repos/staging-x86_64/PKGBUILD
(from rev 330996, libphonenumber/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: libphonenumber/repos/staging-x86_64/PKGBUILD (from rev 330996, libphonenumber/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-08-06 16:26:04 UTC (rev 330997)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.9.10
+pkgrel=2
+pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers"
+url="https://github.com/googlei18n/libphonenumber"
+arch=(x86_64)
+license=(Apache)
+depends=(icu protobuf boost-libs)
+makedepends=(boost cmake gtest git 'java-environment>=9' ninja)
+_commit=2ba8fa9025ab4ab7735902d8442805f1f9cdbc90 # tags/v8.9.10^0
+source=("git+$url#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g'
+}
+
+prepare() {
+ mkdir build
+ cd $pkgname
+}
+
+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 \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ cmake --build .
+}
+
+check() {
+ cmake --build build --target tests
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --build build --target install
+}
More information about the arch-commits
mailing list