blob: a5282af05d25de931d53207eda10f73aef4491d1 (
plain)
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
34
35
36
37
38
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"
|