# Template build file for 'libXfont'.
pkgname=libXfont
version=1.4.5
revision=3
build_style=gnu-configure
configure_args="--disable-devel-docs"
short_desc="X font Library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://xorg.freedesktop.org/"
license="MIT"
distfiles="${XORG_SITE}/lib/$pkgname-$version.tar.bz2"
checksum=bbf96fb80b6b95cdb1dc968085082a6e668193a54cd9d6e2af669909c0cb7170

hostmakedepends="pkg-config xtrans"
makedepends="xproto fontcacheproto fontsproto freetype-devel libfontenc-devel"

post_install() {
	vinstall COPYING 644 usr/share/licenses/${pkgname}
}

libXfont-devel_package() {
	depends="xproto fontsproto zlib-devel libfontenc-devel freetype-devel
		libXfont-${version}_${revision}"
	short_desc="${short_desc} -- development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
	}
}

libXfont_package() {
	pkg_install() {
		vmove usr
	}
}
