aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wlcs/APKBUILD
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2021-04-04 11:40:11 +0200
committerLeo <thinkabit.ukim@gmail.com>2021-04-04 20:51:21 +0000
commit71e0d0b90f3f187ca2812b6baa7a1fad124df5c9 (patch)
treea84cf2c4047965f8219a9af4e3a12c38df67795d /testing/wlcs/APKBUILD
parentf604ba9fa086107d03a129ae3a7c81426f6615aa (diff)
downloadaports-71e0d0b90f3f187ca2812b6baa7a1fad124df5c9.tar.gz
aports-71e0d0b90f3f187ca2812b6baa7a1fad124df5c9.tar.bz2
aports-71e0d0b90f3f187ca2812b6baa7a1fad124df5c9.tar.xz
testing/wlcs: new aport
Diffstat (limited to 'testing/wlcs/APKBUILD')
-rw-r--r--testing/wlcs/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/wlcs/APKBUILD b/testing/wlcs/APKBUILD
new file mode 100644
index 0000000000..4733d5e7cc
--- /dev/null
+++ b/testing/wlcs/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Luca Weiss <luca@z3ntu.xyz>
+# Maintainer: Luca Weiss <luca@z3ntu.xyz>
+pkgname=wlcs
+pkgver=1.2.1
+pkgrel=0
+pkgdesc="Wayland Conformance Test Suite"
+url="https://github.com/MirServer/wlcs"
+arch="all"
+license="GPL-3.0-only"
+makedepends="cmake gtest-dev wayland-dev boost-dev"
+subpackages="$pkgname-dev"
+source="https://github.com/MirServer/wlcs/releases/download/v$pkgver/wlcs-$pkgver.tar.xz
+ gtest.patch"
+options="!check" # No test suite
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ -DWLCS_BUILD_ASAN=False \
+ -DWLCS_BUILD_TSAN=False \
+ -DWLCS_BUILD_UBSAN=False \
+ $CMAKE_CROSSOPTS .
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+sha512sums="b6cb557e74ef835674b2cbea7e00e720ee44a47da379c68a2c49172d644222b9db8d62cbe3c706bb9c31b8e3600fb54b1729c35eb78c0e4239355d3af2b9b599 wlcs-1.2.1.tar.xz
+31239bae4bdbaaa15e355ee29f9d3e364439a85ac2915a91912c579481a006f4b45471745bc81ff1e873660547717be7025f7fcf16ed2ed31fea152655fb9371 gtest.patch"