diff options
author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-03-07 01:03:49 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-03-07 01:04:56 +0000 |
commit | e676d445d440c9372fa44a0a5817853717063a00 (patch) | |
tree | 7b0be33b7f607018fc505e15e9af3283494cf3a4 | |
parent | e921371f3136b607d6e4da9a3e5fa49b14cd6c71 (diff) | |
download | aports-e676d445d440c9372fa44a0a5817853717063a00.tar.bz2 aports-e676d445d440c9372fa44a0a5817853717063a00.tar.xz |
testing/popl: new aport
-rw-r--r-- | testing/popl/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/popl/APKBUILD b/testing/popl/APKBUILD new file mode 100644 index 0000000000..e64ccf08af --- /dev/null +++ b/testing/popl/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> +# Maintainer: +pkgname=popl +pkgver=1.0.0 +pkgrel=0 +pkgdesc="Header-only C++ program options parser library" +url="https://github.com/badaix/popl" +arch="noarch" +license="MIT" +depends="" +depends_dev="" +makedepends="cmake" +install="" +options="!check" # no tests +subpackages="" +source="popl-$pkgver.tar.gz::https://github.com/badaix/popl/archive/v$pkgver.tar.gz" +builddir="$srcdir/popl-$pkgver" + +build() { + cd "$builddir" + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="b48bba41674c7821059eb97833f6521f123ed9adf9a62ac8f4fa98807910bbc899513a5fc2260f763d15bbf9d280547b9ed6d8aa667db48628dae9344f805721 popl-1.0.0.tar.gz" |