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

Lukas Fleischer lfleischer at archlinux.org
Thu Dec 12 03:06:51 UTC 2019


    Date: Thursday, December 12, 2019 @ 03:06:50
  Author: lfleischer
Revision: 370698

db-move: moved libphonenumber from [staging] to [testing] (x86_64)

Added:
  libphonenumber/repos/testing-x86_64/
  libphonenumber/repos/testing-x86_64/PKGBUILD
    (from rev 370697, 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 370697, libphonenumber/repos/staging-x86_64/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-12-12 03:06:50 UTC (rev 370698)
@@ -0,0 +1,40 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.11.0
+pkgrel=1
+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=ca195d5aff67e4062b3957a4a7fdabca9d443acc  # tags/v8.11.0^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