aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-03-02 13:59:03 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-03-02 14:53:00 -0300
commitfa3c37c698a2f405cf12ffd91018a2a58b7d1fb5 (patch)
tree313fe8432384bc3c2dcd99bf06a9b140a1c0d18a
parent112371bffbb15f740268976b090a2f86706ada7c (diff)
downloadaports-fa3c37c698a2f405cf12ffd91018a2a58b7d1fb5.tar.gz
aports-fa3c37c698a2f405cf12ffd91018a2a58b7d1fb5.tar.bz2
aports-fa3c37c698a2f405cf12ffd91018a2a58b7d1fb5.tar.xz
community/gflags: modernize
-rw-r--r--community/gflags/APKBUILD32
1 files changed, 13 insertions, 19 deletions
diff --git a/community/gflags/APKBUILD b/community/gflags/APKBUILD
index 9ffa44ace8..dee179fcba 100644
--- a/community/gflags/APKBUILD
+++ b/community/gflags/APKBUILD
@@ -2,38 +2,32 @@
# Maintainer: wener <wenermail@gmail.com>
pkgname=gflags
pkgver=2.2.2
-pkgrel=0
+pkgrel=1
pkgdesc="The gflags package contains a C++ library that implements commandline flags processing."
url="https://gflags.github.io/gflags/"
arch="all"
-license="BSD"
+license="BSD-3-Clause"
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
+build() {
+ cmake -B build . \
+ -DCMAKE_BUILD_TYPE=None \
+ -DBUILD_STATIC_LIBS=ON \
+ -DBUILD_SHARED_LIBS=ON \
+ -DBUILD_TESTING=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DREGISTER_INSTALL_PREFIX=OFF
+ make -C build
}
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
+ make -C build test
}
package() {
- cd "$builddir"
- make DESTDIR=$pkgdir install
+ make -C build DESTDIR="$pkgdir" install
}
sha512sums="98c4703aab24e81fe551f7831ab797fb73d0f7dfc516addb34b9ff6d0914e5fd398207889b1ae555bac039537b1d4677067dae403b64903577078d99c1bdb447 gflags-2.2.2.tar.gz"