aboutsummaryrefslogtreecommitdiffstats
path: root/community/wlcs
diff options
context:
space:
mode:
Diffstat (limited to 'community/wlcs')
-rw-r--r--community/wlcs/APKBUILD37
-rw-r--r--community/wlcs/gtest.patch16
2 files changed, 53 insertions, 0 deletions
diff --git a/community/wlcs/APKBUILD b/community/wlcs/APKBUILD
new file mode 100644
index 0000000000..a918869928
--- /dev/null
+++ b/community/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=1
+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"
diff --git a/community/wlcs/gtest.patch b/community/wlcs/gtest.patch
new file mode 100644
index 0000000000..6d40e7add9
--- /dev/null
+++ b/community/wlcs/gtest.patch
@@ -0,0 +1,16 @@
+https://github.com/MirServer/wlcs/pull/193
+
+diff --git a/cmake/FindGtestGmock.cmake b/cmake/FindGtestGmock.cmake
+index 230d988..34c514a 100644
+--- a/cmake/FindGtestGmock.cmake
++++ b/cmake/FindGtestGmock.cmake
+@@ -63,6 +63,9 @@ if (EXISTS ${GMOCK_SOURCE})
+ else()
+ # Assume gmock is no longer source, we'll find out soon enough if that's wrong
+ add_custom_target(GMock)
++ if (NOT DEFINED GTEST_LIBRARY)
++ set(GTEST_LIBRARY ${GTEST_LIBRARIES})
++ endif()
+ string(REPLACE gtest gmock GMOCK_LIBRARY ${GTEST_LIBRARY})
+ endif()
+