# Template build file for 'libXxf86vm'.
pkgname=libXxf86vm
version=1.1.5
revision=1
build_style=gnu-configure
configure_args="--enable-malloc0returnsnull"
hostmakedepends="pkg-config"
makedepends="xorgproto libXext-devel"
short_desc="Library for the XFree86-VidMode X extension"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="${XORG_SITE}"
distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.xz"
checksum=247fef48b3e0e7e67129e41f1e789e8d006ba47dba1c0cdce684b9b703f888e7

post_install() {
	vlicense COPYING
}

libXxf86vm-devel_package() {
	depends="${makedepends} ${sourcepkg}-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove usr/share
	}
}
