aboutsummaryrefslogblamecommitdiffstats
path: root/community/wlcs/APKBUILD
blob: 08171164dc30cc699c808b8c94ed67281bd618a8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                          
            
        






                                                                                        
                                                   





















                                                                                          



                                                                                                                                                                            
# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=wlcs
pkgver=1.3.0
pkgrel=2
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
	0001-Fix-build-when-using-GTest-1.11.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="
3c4ffd9fa1a087fe58912792f0747884bc42bb344be07e937079d399d2bf85c0e9e445880d8e503bad0028c48ffbf2338174c3c74faee5057bf62ff7f121f0de  wlcs-1.3.0.tar.xz
860caa3646525e08e42ec811dc6ed1124f2e22d3f3bd4f5979e89770ec430fe29f38445e8bda86228f3548631797316abc79925c912414370bdd74ddce109b2e  0001-Fix-build-when-using-GTest-1.11.patch
"