Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions extra/gflags/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Contributor: wener <[email protected]>
# Alpine Maintainer: wener <[email protected]>
# Maintainer: nnarayanamurthy <[email protected]>
pkgname=gflags
pkgver=2.2.2
pkgrel=2
pkgdesc="The gflags package contains a C++ library that implements commandline flags processing."
url="https://gflags.github.io/gflags/"
arch="all"
license="BSD-3-Clause"
makedepends="cmake samurai"
subpackages="$pkgname-dev"
source="gflags-$pkgver.tar.gz::https://github.com/gflags/gflags/archive/v$pkgver.tar.gz"

build() {
cmake3.5 -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DBUILD_STATIC_LIBS=ON \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DREGISTER_INSTALL_PREFIX=OFF
cmake --build build
}

check() {
ctest --test-dir build
}

package() {
DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
98c4703aab24e81fe551f7831ab797fb73d0f7dfc516addb34b9ff6d0914e5fd398207889b1ae555bac039537b1d4677067dae403b64903577078d99c1bdb447 gflags-2.2.2.tar.gz
"
Loading