aboutsummaryrefslogtreecommitdiffstats
path: root/community/wlcs/APKBUILD
blob: a9188699285d3844b8b8b24e0f37cf96339b6401 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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"