summaryrefslogtreecommitdiff
path: root/user/range-v3/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-22 03:10:12 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-01-22 03:10:12 +0000
commitd3f6a36abce51b419016fed4336adc856cf405d1 (patch)
tree0b9de5a9ebefb5ceea96e5b8a73336325966e848 /user/range-v3/APKBUILD
parentfbb166d791577db20e6f5ba01076d4fde32e94b0 (diff)
downloadpackages-d3f6a36abce51b419016fed4336adc856cf405d1.tar.gz
packages-d3f6a36abce51b419016fed4336adc856cf405d1.tar.bz2
packages-d3f6a36abce51b419016fed4336adc856cf405d1.tar.xz
packages-d3f6a36abce51b419016fed4336adc856cf405d1.zip
user/range-v3: New package
Diffstat (limited to 'user/range-v3/APKBUILD')
-rw-r--r--user/range-v3/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/range-v3/APKBUILD b/user/range-v3/APKBUILD
new file mode 100644
index 000000000..3221286be
--- /dev/null
+++ b/user/range-v3/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=range-v3
+pkgver=0.10.0
+pkgrel=0
+pkgdesc="Range library for C++"
+url="http://ericniebler.com/2018/12/05/standard-ranges/"
+arch="noarch"
+license="BSL-1.0 AND NCSA AND MIT"
+depends=""
+makedepends="cmake doxygen"
+subpackages=""
+source="range-v3-$pkgver.tar.gz::https://github.com/ericniebler/range-v3/archive/$pkgver.tar.gz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ ${CMAKE_CROSSOPTS} \
+ .
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="4db089dcbf638eb30fa20dcf6785dd460c5a074a8912984a484592753cfee9f5b9a0e2c56b5bc5921d1b6120877aa2c83ac0a6fe428088ef2854033a635e9723 range-v3-0.10.0.tar.gz"