aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gflags
diff options
context:
space:
mode:
authorwener <wenermail@gmail.com>2018-04-03 18:28:51 +0800
committerNatanael Copa <ncopa@alpinelinux.org>2018-04-03 10:38:38 +0000
commitcbf091ceed367e64cd7f6819a09a2c4a2f151e31 (patch)
tree1908afe3a38f86c6a2c60506120c12561cacaecc /testing/gflags
parent6ceab4f6b493c07ea44aa67c8145b1a635dd1022 (diff)
downloadaports-cbf091ceed367e64cd7f6819a09a2c4a2f151e31.tar.bz2
aports-cbf091ceed367e64cd7f6819a09a2c4a2f151e31.tar.xz
testing/gflags: new aport
Diffstat (limited to 'testing/gflags')
-rw-r--r--testing/gflags/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/gflags/APKBUILD b/testing/gflags/APKBUILD
new file mode 100644
index 0000000000..a5282af05d
--- /dev/null
+++ b/testing/gflags/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: wener <wenermail@gmail.com>
+# Maintainer: wener <wenermail@gmail.com>
+pkgname=gflags
+pkgver=2.2.1
+pkgrel=0
+pkgdesc="The gflags package contains a C++ library that implements commandline flags processing."
+url="https://gflags.github.io/gflags/"
+arch="all"
+license="BSD"
+makedepends="cmake"
+subpackages="$pkgname-dev"
+source="gflags-$pkgver.tar.gz::https://github.com/gflags/gflags/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver/.build"
+
+prepare() {
+ default_prepare
+ mkdir -p $builddir
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+build() {
+ cd "$builddir"
+ cmake \
+ -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=/usr \
+ -DREGISTER_INSTALL_PREFIX=OFF ..
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR=$pkgdir install
+}
+
+sha512sums="e919cbdcff1f993ddbfa9c06d8e595566a4717c27ff62f388a64c0e6b4683a93211c24ce78485eae84c2c76053341574064e6c56af185fc2782e2816b26e1fc9 gflags-2.2.1.tar.gz"