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

Evangelos Foutras foutrelis at archlinux.org
Tue Jun 8 17:52:55 UTC 2021


    Date: Tuesday, June 8, 2021 @ 17:52:55
  Author: foutrelis
Revision: 417489

archrelease: copy trunk to staging-x86_64

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

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

Copied: libphonenumber/repos/staging-x86_64/PKGBUILD (from rev 417488, libphonenumber/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-06-08 17:52:55 UTC (rev 417489)
@@ -0,0 +1,43 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+
+pkgname=libphonenumber
+pkgver=8.12.23
+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=8767b3e904f2864c1874f3b8e39eeb8bca7d7238  # tags/v8.12.23^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 -S $pkgname/cpp -B build \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib
+  cmake --build build
+}
+
+check() {
+  cmake --build build --target tests
+}
+
+package() {
+  depends+=(libicu{uc,i18n}.so libprotobuf.so libboost_thread.so)
+  provides+=(libgeocoding.so libphonenumber.so)
+
+  DESTDIR="$pkgdir" cmake --install build
+}



More information about the arch-commits mailing list