summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD12
2 files changed, 9 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index badfa253c11..d29ee083116 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
pkgbase = gflags-git
pkgdesc = C++ Library for commandline flag processing
pkgver = 2.2.1.r2.gaa2d0f7
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/gflags/gflags
arch = i686
arch = x86_64
license = BSD
makedepends = git
makedepends = cmake
+ depends = glibc
provides = gflags
conflicts = gflags
options = staticlibs
diff --git a/PKGBUILD b/PKGBUILD
index 5c5c361dade..4d565586481 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,11 +2,12 @@
pkgname=gflags-git
pkgver=2.2.1.r2.gaa2d0f7
-pkgrel=1
+pkgrel=2
pkgdesc="C++ Library for commandline flag processing"
arch=('i686' 'x86_64')
url="https://github.com/gflags/gflags"
license=('BSD')
+depends=('glibc')
makedepends=('git' 'cmake')
provides=('gflags')
conflicts=('gflags')
@@ -18,7 +19,7 @@ sha256sums=('SKIP')
prepare() {
cd "gflags"
- mkdir -p "build"
+ mkdir -p "_build"
}
pkgver() {
@@ -28,10 +29,11 @@ pkgver() {
}
build() {
- cd "gflags/build"
+ cd "gflags/_build"
cmake -DCMAKE_INSTALL_PREFIX="/usr" \
-DREGISTER_INSTALL_PREFIX=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC_LIBS=ON \
-DBUILD_TESTING=ON ../
@@ -39,13 +41,13 @@ build() {
}
check() {
- cd "gflags/build"
+ cd "gflags/_build"
make test
}
package() {
- cd "gflags/build"
+ cd "gflags/_build"
make DESTDIR="$pkgdir" install
install -D -m644 "../COPYING.txt" "$pkgdir/usr/share/licenses/gflags/COPYING.txt"