aboutsummaryrefslogtreecommitdiffstats
path: root/community/popl/APKBUILD
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2018-07-10 17:37:30 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2018-10-14 13:17:54 +0200
commit639e4e8ca4d2b82a73a8f68a69a718c01d323cab (patch)
tree781278987b30db10190004743aed17adca66e279 /community/popl/APKBUILD
parent709adfd19d891f58d5b5839da2cca6cffdb9cec5 (diff)
downloadaports-639e4e8ca4d2b82a73a8f68a69a718c01d323cab.tar.bz2
aports-639e4e8ca4d2b82a73a8f68a69a718c01d323cab.tar.xz
testing/popl: move to community
Diffstat (limited to 'community/popl/APKBUILD')
-rw-r--r--community/popl/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/popl/APKBUILD b/community/popl/APKBUILD
new file mode 100644
index 0000000000..bc046e3756
--- /dev/null
+++ b/community/popl/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
+# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
+pkgname=popl
+pkgver=1.2.0
+pkgrel=0
+pkgdesc="Header-only C++ program options parser library"
+url="https://github.com/badaix/popl"
+arch="noarch"
+license="MIT"
+makedepends="cmake"
+options="!check" # no tests
+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="a5d372346dd282f634b1ca92f468588f7069b34a5911a6ea46e5ef33e8e6c360ca13f67bf221555d76c7620c4222694077a74589a1c32bdbc094e64366299609 popl-1.2.0.tar.gz"