# Template build file for 'libXfontcache'.
pkgname=libXfontcache
version=1.0.4
revision=5
build_style=gnu-configure
configure_args="--enable-malloc0returnsnull"
hostmakedepends="pkg-config"
makedepends="xproto fontcacheproto libX11-devel libXext-devel"
short_desc="X-TrueType font cache extension client library"
homepage="http://xorg.freedesktop.org"
license="MIT"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.bz2"
checksum=ffe747cfbf81cdd862af1b05d021ad1ab83b623eab5b32b0a618efb4c0f3e01c

libXfontcache-devel_package() {
	depends="fontcacheproto libXfontcache>=${version}"
	short_desc+=" -- development files"
	pkg_install() {
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove usr/share
	}
}

libXfontcache_package() {
	pkg_install() {
		vmove usr
	}
}
