aboutsummaryrefslogtreecommitdiffstats
path: root/community/catch2
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-12-12 11:22:19 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-12-12 12:47:02 +0100
commit1bce96fc8cd843e43b5491b6555c915ffe31d112 (patch)
treebc29d0e2c1771f16ae7efaf876c0b8f47047f988 /community/catch2
parentf5e4e962164d249e66bb33ea81492bb6eebb04b0 (diff)
downloadaports-1bce96fc8cd843e43b5491b6555c915ffe31d112.tar.bz2
aports-1bce96fc8cd843e43b5491b6555c915ffe31d112.tar.xz
community/catch2: move from testing
Diffstat (limited to 'community/catch2')
-rw-r--r--community/catch2/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/catch2/APKBUILD b/community/catch2/APKBUILD
new file mode 100644
index 0000000000..7c65ba71a0
--- /dev/null
+++ b/community/catch2/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=catch2
+pkgver=2.11.0
+pkgrel=0
+arch="noarch"
+url="https://github.com/catchorg/Catch2"
+pkgdesc="A modern, C++-native, header-only, test framework for unit-tests"
+license="BSL-1.0"
+makedepends="cmake"
+checkdepends="python3"
+source="https://github.com/catchorg/Catch2/archive/v$pkgver/catch2-v$pkgver.tar.gz"
+subpackages="$pkgname-doc"
+builddir="$srcdir/Catch2-$pkgver"
+
+prepare() {
+ default_prepare
+
+ mkdir "$builddir"/build
+}
+
+build() {
+ cd "$builddir"/build
+ cmake "$builddir" \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib
+ make
+}
+
+check() {
+ cd "$builddir"/build
+ # ApprovalTests is broken
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "ApprovalTests"
+}
+
+package() {
+ cd "$builddir"/build
+ DESTDIR="$pkgdir" make install
+}
+
+sha512sums="0a7843931118a1b64c14bf7e3061662a68e804e93a17a956532356e319dcaeb9f1f71d0338a7e980701443dbdb4c3ed044a271e3d1faf3a6bfd942eae3f39498 catch2-v2.11.0.tar.gz"