[arch-commits] Commit in libphonenumber/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Mon Apr 27 09:47:45 UTC 2020


    Date: Monday, April 27, 2020 @ 09:47:44
  Author: foutrelis
Revision: 381674

archrelease: copy trunk to staging-x86_64

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

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: libphonenumber/repos/staging-x86_64/PKGBUILD (from rev 381673, libphonenumber/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-04-27 09:47:44 UTC (rev 381674)
@@ -0,0 +1,41 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.11.5
+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')
+provides=(libgeocoding.so libphonenumber.so)
+_commit=df9d37a1a002cf22b479a113d069326dfb1b781f  # tags/v8.11.5^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