# Template file for 'libXcursor'
pkgname=libXcursor
version=1.2.2
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="xorgproto libXfixes-devel libXrender-devel"
short_desc="Client-side cursor loading library for X"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://gitlab.freedesktop.org/xorg/lib/libxcursor"
distfiles="${XORG_SITE}/lib/libXcursor-${version}.tar.xz"
checksum=53d071bd2cc56e517a30998d5e685c8a74556ddada43c6985d14da9a023a88ee

post_install() {
	vlicense COPYING
}

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