aboutsummaryrefslogtreecommitdiffstats
path: root/community/gflags/APKBUILD
diff options
context:
space:
mode:
authorwener <wenermail@gmail.com>2019-06-29 03:32:06 +0800
committerNatanael Copa <ncopa@alpinelinux.org>2019-07-04 06:59:51 +0000
commit12f999a66711954da4ef0b4ef04a8e51da4952dc (patch)
tree751195ce517d7c00156c17304fc2be80db61c5aa /community/gflags/APKBUILD
parent49b68d8cfcf731449422b07c5b33c264e04abb61 (diff)
downloadaports-12f999a66711954da4ef0b4ef04a8e51da4952dc.tar.gz
aports-12f999a66711954da4ef0b4ef04a8e51da4952dc.tar.bz2
aports-12f999a66711954da4ef0b4ef04a8e51da4952dc.tar.xz
community/gflag: move from testing
Diffstat (limited to 'community/gflags/APKBUILD')
-rw-r--r--community/gflags/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/gflags/APKBUILD b/community/gflags/APKBUILD
new file mode 100644
index 0000000000..9ffa44ace8
--- /dev/null
+++ b/community/gflags/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: wener <wenermail@gmail.com>
+# Maintainer: wener <wenermail@gmail.com>
+pkgname=gflags
+pkgver=2.2.2
+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="98c4703aab24e81fe551f7831ab797fb73d0f7dfc516addb34b9ff6d0914e5fd398207889b1ae555bac039537b1d4677067dae403b64903577078d99c1bdb447 gflags-2.2.2.tar.gz"