[arch-commits] Commit in libphonenumber/repos (3 files)
Jan Steffens
heftig at archlinux.org
Fri Dec 29 05:10:31 UTC 2017
Date: Friday, December 29, 2017 @ 05:10:30
Author: heftig
Revision: 313750
archrelease: copy trunk to staging-x86_64
Added:
libphonenumber/repos/staging-x86_64/
libphonenumber/repos/staging-x86_64/PKGBUILD
(from rev 313749, libphonenumber/trunk/PKGBUILD)
libphonenumber/repos/staging-x86_64/libdir.diff
(from rev 313749, libphonenumber/trunk/libdir.diff)
-------------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
libdir.diff | 16 ++++++++++++++++
2 files changed, 62 insertions(+)
Copied: libphonenumber/repos/staging-x86_64/PKGBUILD (from rev 313749, libphonenumber/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-12-29 05:10:30 UTC (rev 313750)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.8.8
+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=50bb3905f6269b7fe640b065baea74e9b04f9a44 # tags/v8.8.8^0
+source=("git+$url#commit=$_commit" libdir.diff)
+sha256sums=('SKIP'
+ '289949d0d24265aadb960b513543de21a29350342a40cab494a141dbec8ce39b')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g'
+}
+
+prepare() {
+ mkdir build
+ cd $pkgname
+ patch -Np1 -i ../libdir.diff
+}
+
+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/libdir.diff (from rev 313749, libphonenumber/trunk/libdir.diff)
===================================================================
--- staging-x86_64/libdir.diff (rev 0)
+++ staging-x86_64/libdir.diff 2017-12-29 05:10:30 UTC (rev 313750)
@@ -0,0 +1,16 @@
+diff --git i/cpp/CMakeLists.txt w/cpp/CMakeLists.txt
+index 562c70e3d1f8231b..a77fc4dbddcf6791 100644
+--- i/cpp/CMakeLists.txt
++++ w/cpp/CMakeLists.txt
+@@ -590,9 +590,9 @@ install (FILES "src/phonenumbers/base/synchronization/lock.h"
+ get_property (LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
+
+ if ("${LIB64}" STREQUAL "TRUE")
+- set (LIBDIR lib64)
+-else ()
+ set (LIBDIR lib)
++else ()
++ set (LIBDIR lib32)
+ endif ()
+
+ if (${BUILD_STATIC_LIB} STREQUAL "ON")
More information about the arch-commits
mailing list