[arch-commits] Commit in libphonenumber/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Thu May 31 01:50:22 UTC 2018


    Date: Thursday, May 31, 2018 @ 01:50:21
  Author: foutrelis
Revision: 325279

archrelease: copy trunk to staging-x86_64

Added:
  libphonenumber/repos/staging-x86_64/
  libphonenumber/repos/staging-x86_64/PKGBUILD
    (from rev 325278, libphonenumber/trunk/PKGBUILD)

----------+
 PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

Copied: libphonenumber/repos/staging-x86_64/PKGBUILD (from rev 325278, libphonenumber/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-05-31 01:50:21 UTC (rev 325279)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.9.4
+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=0e7c29b96ae37aa9dcae37f18447f184ef00bf85  # tags/v8.9.4^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