[arch-commits] Commit in libphonenumber/repos (4 files)
Jan Steffens
heftig at archlinux.org
Mon Apr 17 03:02:55 UTC 2017
Date: Monday, April 17, 2017 @ 03:02:54
Author: heftig
Revision: 293046
archrelease: copy trunk to gnome-unstable-i686, gnome-unstable-x86_64
Added:
libphonenumber/repos/gnome-unstable-i686/
libphonenumber/repos/gnome-unstable-i686/PKGBUILD
(from rev 293045, libphonenumber/trunk/PKGBUILD)
libphonenumber/repos/gnome-unstable-x86_64/
libphonenumber/repos/gnome-unstable-x86_64/PKGBUILD
(from rev 293045, libphonenumber/trunk/PKGBUILD)
--------------------------------+
gnome-unstable-i686/PKGBUILD | 42 +++++++++++++++++++++++++++++++++++++++
gnome-unstable-x86_64/PKGBUILD | 42 +++++++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
Copied: libphonenumber/repos/gnome-unstable-i686/PKGBUILD (from rev 293045, libphonenumber/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-i686/PKGBUILD (rev 0)
+++ gnome-unstable-i686/PKGBUILD 2017-04-17 03:02:54 UTC (rev 293046)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.4.1
+pkgrel=1
+pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers"
+url="https://github.com/googlei18n/libphonenumber"
+arch=(i686 x86_64)
+depends=(icu protobuf boost-libs)
+makedepends=(boost cmake gtest git java-environment)
+license=("Apache")
+_commit=02dbc0921cf503c548278b7aa8818ea5aa0b8ed3 # tags/v8.4.1^0
+source=("git+$url#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g'
+}
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ CXXFLAGS+=" -Wno-error=deprecated-declarations" # readdir_r deprecation
+ cmake ../$pkgname/cpp \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+check() {
+ cd build
+ make tests
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
Copied: libphonenumber/repos/gnome-unstable-x86_64/PKGBUILD (from rev 293045, libphonenumber/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD 2017-04-17 03:02:54 UTC (rev 293046)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+
+pkgname=libphonenumber
+pkgver=8.4.1
+pkgrel=1
+pkgdesc="Google's common library for parsing, formatting, and validating international phone numbers"
+url="https://github.com/googlei18n/libphonenumber"
+arch=(i686 x86_64)
+depends=(icu protobuf boost-libs)
+makedepends=(boost cmake gtest git java-environment)
+license=("Apache")
+_commit=02dbc0921cf503c548278b7aa8818ea5aa0b8ed3 # tags/v8.4.1^0
+source=("git+$url#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/^libphonenumber-\|^v//;s/-/+/g'
+}
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ CXXFLAGS+=" -Wno-error=deprecated-declarations" # readdir_r deprecation
+ cmake ../$pkgname/cpp \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+check() {
+ cd build
+ make tests
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
More information about the arch-commits
mailing list