diff options
Diffstat (limited to 'testing/gflags/APKBUILD')
-rw-r--r-- | testing/gflags/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/gflags/APKBUILD b/testing/gflags/APKBUILD new file mode 100644 index 0000000000..a5282af05d --- /dev/null +++ b/testing/gflags/APKBUILD @@ -0,0 +1,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" |