void-packages/srcpkgs/wayland/template
maxice8 07a6e57247 wayland: use --with-host-scanner instead of modifying Makefile.in
more robust to use upstream supported options than modifying the build
system.
2018-07-26 01:51:57 -03:00

36 lines
966 B
Bash

# Template file for 'wayland'
pkgname=wayland
version=1.15.0
revision=4
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.eu>"
license="MIT"
homepage="https://wayland.freedesktop.org/"
distfiles="https://wayland.freedesktop.org/releases/wayland-${version}.tar.xz"
checksum=eb3fbebb8559d56a80ad3753ec3db800f587329067962dbf65e14488b4b7aeb0
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"
}
}