summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12017-08-19 15:31:36 +0800
committerChocobo12017-08-19 15:31:36 +0800
commitd85e82d9016e231d4b0640d67c568562576619d7 (patch)
tree8d72a1e258635cdb3b9251a4721bf58bab7e7115 /PKGBUILD
parente4eca04762f202d8a7937505e3d565e455657571 (diff)
downloadaur-gflags-git.tar.gz
upgpkg: gflags-git 2.2.1.r2.gaa2d0f7-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 7 insertions, 5 deletions
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"