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

Massimiliano Torromeo mtorromeo at archlinux.org
Wed Nov 19 14:17:23 UTC 2014


    Date: Wednesday, November 19, 2014 @ 15:17:23
  Author: mtorromeo
Revision: 122746

Added gflags in [community] as a dependency for hhvm

Added:
  gflags/
  gflags/trunk/
  gflags/trunk/PKGBUILD

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

Added: gflags/trunk/PKGBUILD
===================================================================
--- gflags/trunk/PKGBUILD	                        (rev 0)
+++ gflags/trunk/PKGBUILD	2014-11-19 14:17:23 UTC (rev 122746)
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 120283 2014-10-06 16:34:10Z tpowa $
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Anatol Pomozov <anatol.pomozov gmail>
+# Contributor: RunningDroid <runningdroid AT zoho.com>
+# Contributor: Xiao-Long Chen <chenxiaolong at cxl.epac.to>
+
+pkgname=gflags
+pkgver=2.1.1
+pkgrel=4
+pkgdesc='C++ Library for commandline flag processing'
+arch=(i686 x86_64)
+url='https://github.com/schuhschuh/gflags'
+license=(BSD)
+depends=(gcc-libs)
+makedepends=(cmake)
+# google-gflags was renamed to just gflags
+provides=(google-gflags=$pkgver)
+conflicts=(google-gflags)
+source=($pkgname-$pkgver.tar.gz::https://github.com/schuhschuh/gflags/archive/v$pkgver.tar.gz)
+sha256sums=('432edece8102fc141c2e3381e2eb5eabb1ce7614851cc96bdec4715105086238')
+
+build() {
+  cd gflags-$pkgver
+  cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -DBUILD_TESTING=ON
+  make
+}
+
+check() {
+  cd gflags-$pkgver
+  make test
+}
+
+package() {
+  cd gflags-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -D -m644 COPYING.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING.txt
+}


More information about the arch-commits mailing list