void-packages/srcpkgs/wayland/template

44 lines
1.1 KiB
Bash

# Template file for 'wayland'.
pkgname=wayland
version=1.15.0
revision=2
build_style=gnu-configure
configure_args="--disable-documentation --disable-static"
hostmakedepends="automake flex libtool 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="http://wayland.freedesktop.org/"
distfiles="http://wayland.freedesktop.org/releases/wayland-${version}.tar.xz"
checksum=eb3fbebb8559d56a80ad3753ec3db800f587329067962dbf65e14488b4b7aeb0
pre_configure() {
autoreconf -fi
}
post_install() {
# avoid conflict with libGLs libwayland-egl
rm $DESTDIR/usr/lib/libwayland-egl.so.*
vlicense COPYING
}
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" wayland-devel"
post_configure() {
# Use host wayland-scanner
sed -e '/$(AM_V_GEN)/s,$(wayland_scanner),wayland-scanner,g' -i Makefile.in
}
fi
wayland-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}