void-packages/srcpkgs/fontconfig/template

49 lines
1.3 KiB
Bash

# Template file for 'fontconfig'
pkgname=fontconfig
version=2.13.1
revision=1
build_style=gnu-configure
configure_args="--disable-static --enable-docs --with-cache-dir=/var/cache/${pkgname}"
hostmakedepends="gperf pkg-config"
makedepends="expat-devel freetype-devel libuuid-devel"
conf_files="/etc/fonts/fonts.conf"
short_desc="Library for configuring and customizing font access"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://www.fontconfig.org"
distfiles="${FREEDESKTOP_SITE}/${pkgname}/release/${pkgname}-${version}.tar.bz2"
checksum=f655dd2a986d7aa97e052261b36aa67b0a64989496361eca8d604e6414006741
pre_build() {
# trick to regenerate hash functions :-)
rm -f src/fcobjshash.h
}
post_install() {
if [ "$CROSS_BUILD" ]; then
sed -i 's,\(Cflags: -I${includedir}\).*,\1,g' ${DESTDIR}/usr/lib/pkgconfig/fontconfig.pc
fi
vlicense COPYING
}
fontconfig-devel_package() {
short_desc+=" - development files"
depends="fontconfig-${version}_${revision} expat-devel freetype-devel
libuuid-devel"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
vmove "usr/lib/*.so"
vmove usr/share/gettext
}
}
fontconfig-doc_package() {
short_desc+=" - documentation"
noarch=yes
pkg_install() {
vmove usr/share/doc
}
}