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

Jan Steffens heftig at archlinux.org
Thu Jan 12 18:43:43 UTC 2017


    Date: Thursday, January 12, 2017 @ 18:43:42
  Author: heftig
Revision: 285927

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

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

-------------------------+
 staging-i686/PKGBUILD   |   41 +++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

Copied: libphonenumber/repos/staging-i686/PKGBUILD (from rev 285926, libphonenumber/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2017-01-12 18:43:42 UTC (rev 285927)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.0.0
+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)
+depends=(icu protobuf boost-libs)
+makedepends=(boost cmake gtest git java-environment)
+license=("Apache")
+_commit=1eb06f31e1dd3ee3ce699d095a0ad4f281ee0f2c  # tags/v8.0.0^0
+source=("git+$url#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g'
+}
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  CXXFLAGS+=" -Wno-error=deprecated-declarations"  # readdir_r deprecation
+  cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname/cpp
+  make
+}
+
+check() {
+  cd build
+  make tests
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}

Copied: libphonenumber/repos/staging-x86_64/PKGBUILD (from rev 285926, libphonenumber/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2017-01-12 18:43:42 UTC (rev 285927)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.0.0
+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)
+depends=(icu protobuf boost-libs)
+makedepends=(boost cmake gtest git java-environment)
+license=("Apache")
+_commit=1eb06f31e1dd3ee3ce699d095a0ad4f281ee0f2c  # tags/v8.0.0^0
+source=("git+$url#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g'
+}
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  CXXFLAGS+=" -Wno-error=deprecated-declarations"  # readdir_r deprecation
+  cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname/cpp
+  make
+}
+
+check() {
+  cd build
+  make tests
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list