[arch-commits] Commit in libphonenumber/repos (4 files)

Jan Steffens heftig at archlinux.org
Wed Oct 18 23:13:46 UTC 2017


    Date: Wednesday, October 18, 2017 @ 23:13:44
  Author: heftig
Revision: 308231

archrelease: copy trunk to staging-i686, staging-x86_64

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

-------------------------+
 staging-i686/PKGBUILD   |   43 +++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

Copied: libphonenumber/repos/staging-i686/PKGBUILD (from rev 308230, libphonenumber/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2017-10-18 23:13:44 UTC (rev 308231)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.8.4
+pkgrel=1
+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
+}

Copied: libphonenumber/repos/staging-x86_64/PKGBUILD (from rev 308230, libphonenumber/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2017-10-18 23:13:44 UTC (rev 308231)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.8.4
+pkgrel=1
+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