# Template file for 'libXpresent'
pkgname=libXpresent
version=1.0.2
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config xorg-util-macros"
makedepends="libXfixes-devel libXrandr-devel"
short_desc="XPresent extension C library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="X11"
homepage="https://cgit.freedesktop.org/xorg/lib/libXpresent/"
distfiles="${XORG_SITE}/lib/libXpresent-${version}.tar.gz"
checksum=e98a211e51d8b9381d16b24a57cecb926a23e743b9e0b1ffc3e870206b7dee1a

post_install() {
	vlicense COPYING
}

libXpresent-devel_package() {
	depends="${sourcepkg}-${version}_${revision} libX11-devel libXext-devel
	 libXfixes-devel libXrandr-devel xorgproto"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/man/man3
		vmove "usr/lib/*.so"
		vmove "usr/lib/*.a"
	}
}
