[arch-commits] Commit in libphonenumber/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sun Sep 25 19:41:20 UTC 2016


    Date: Sunday, September 25, 2016 @ 19:41:20
  Author: heftig
Revision: 276955

7.7.0-1

Modified:
  libphonenumber/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-25 19:35:10 UTC (rev 276954)
+++ PKGBUILD	2016-09-25 19:41:20 UTC (rev 276955)
@@ -2,17 +2,23 @@
 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
 
 pkgname=libphonenumber
-pkgver=7.5.2
+pkgver=7.7.0
 pkgrel=1
 pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers"
 arch=(i686 x86_64)
 depends=(icu protobuf boost-libs)
-makedepends=(boost cmake gtest)
+makedepends=(boost cmake gtest git java-environment)
 url="https://github.com/googlei18n/libphonenumber"
 license=("Apache")
-source=("$url/archive/$pkgname-$pkgver.tar.gz")
-sha256sums=('c116c1299074b10ed8b862221ca57f822bae7637b717706ff2c71350f430b3b1')
+_commit=1ec4d341c3cd13dc2ae05e0b372e85edfb41ee80
+source=("git+$url#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^libphonenumber-//;s/-/+/g'
+}
+
 prepare() {
   mkdir -p build
 }
@@ -20,7 +26,7 @@
 build() {
   cd build
   CXXFLAGS+=" -Wno-error=deprecated-declarations"  # readdir_r deprecation
-  cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname-$pkgname-$pkgver/cpp
+  cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname/cpp
   make
 }
 



More information about the arch-commits mailing list