void-packages/srcpkgs/wayland/template

36 lines
967 B
Bash

# Template file for 'wayland'
pkgname=wayland
version=1.16.0
revision=1
build_style=gnu-configure
configure_args="--disable-documentation --disable-static"
hostmakedepends="flex pkg-config"
makedepends="expat-devel libffi-devel libfl-devel libxml2-devel"
short_desc="Wayland protocol compositor"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="MIT"
homepage="https://wayland.freedesktop.org/"
distfiles="https://wayland.freedesktop.org/releases/wayland-${version}.tar.xz"
checksum=4e72c2b56109ccfb6610d776e465f4ca0af2280c9c2f7d5cc23f0ed2548752f5
post_install() {
vlicense COPYING
}
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" wayland-devel"
configure_args+=" --with-host-scanner"
fi
wayland-devel_package() {
depends="${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"
}
}