Skip to content
Snippets Groups Projects
Commit cbf091ce authored by 杨文 陈's avatar 杨文 陈 Committed by Natanael Copa
Browse files

testing/gflags: new aport

parent 6ceab4f6
No related merge requests found
# 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment