void-packages/srcpkgs/wayland/template
Érico Rolim 939f1c6b61 wayland: update to 0.19.0, adopt.
Also fix ndebug mode with meson options instead of CFLAGS. Disabling
NDEBUG is necessary for the test suite to work correctly.

Thanks ifreund for pointing me in this direction.
2021-01-31 23:10:23 -03:00

37 lines
1,008 B
Bash

# Template file for 'wayland'
pkgname=wayland
version=1.19.0
revision=1
build_style=meson
# "Tests must not be built with NDEBUG defined, they rely on assert()."
configure_args="-Ddocumentation=false -Db_ndebug=false"
hostmakedepends="flex pkg-config"
makedepends="expat-devel libffi-devel libfl-devel libxml2-devel"
short_desc="Wayland protocol compositor"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
homepage="https://wayland.freedesktop.org/"
distfiles="https://wayland.freedesktop.org/releases/wayland-${version}.tar.xz"
checksum=baccd902300d354581cd5ad3cc49daa4921d55fb416a5883e218750fef166d15
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" wayland-devel"
fi
post_install() {
vlicense COPYING
}
wayland-devel_package() {
depends="libffi-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin
vmove usr/include
vmove usr/share/aclocal
vmove usr/share/wayland
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}