[arch-commits] Commit in libphonenumber/repos (3 files)
Jelle van der Waa
jelle at archlinux.org
Wed Oct 23 18:30:00 UTC 2019
Date: Wednesday, October 23, 2019 @ 18:29:59
Author: jelle
Revision: 365407
db-move: moved libphonenumber from [staging] to [testing] (x86_64)
Added:
libphonenumber/repos/testing-x86_64/
libphonenumber/repos/testing-x86_64/PKGBUILD
(from rev 365406, libphonenumber/repos/staging-x86_64/PKGBUILD)
Deleted:
libphonenumber/repos/staging-x86_64/
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: libphonenumber/repos/testing-x86_64/PKGBUILD (from rev 365406, libphonenumber/repos/staging-x86_64/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2019-10-23 18:29:59 UTC (rev 365407)
@@ -0,0 +1,40 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.10.20
+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')
+_commit=b8da23f917f8553a0d06979d1da02f304d8f6659 # tags/v8.10.20^0
+source=("git+$url#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g'
+}
+
+prepare() {
+ cd $pkgname
+}
+
+build() {
+ CXXFLAGS+=" -Wno-error=deprecated-declarations" # readdir_r deprecation
+ CXXFLAGS+=" -Wno-error=unused-variable" # this is nuts
+ cmake -H$pkgname/cpp -Bbuild \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ cmake --build build
+}
+
+check() {
+ cmake --build build --target tests
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --build build --target install
+}
More information about the arch-commits
mailing list