aboutsummaryrefslogtreecommitdiffstats
path: root/community/gflags/APKBUILD
blob: dee179fcbaf703ddee5d654cd60b7545c57b4987 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com>
pkgname=gflags
pkgver=2.2.2
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-3-Clause"
makedepends="cmake"
subpackages="$pkgname-dev"
source="gflags-$pkgver.tar.gz::https://github.com/gflags/gflags/archive/v$pkgver.tar.gz"

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() {
	make -C build test
}

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

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