void-packages/srcpkgs/fontconfig/template
2017-09-11 10:32:05 +02:00

38 lines
1.1 KiB
Bash

# Template build file for 'fontconfig'.
pkgname=fontconfig
version=2.12.5
revision=1
build_style=gnu-configure
configure_args="--disable-static --enable-docs --with-cache-dir=/var/cache/$pkgname"
hostmakedepends="pkg-config gperf"
makedepends="expat-devel zlib-devel freetype-devel"
conf_files="/etc/fonts/fonts.conf"
short_desc="Library for configuring and customizing font access"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.fontconfig.org"
license="MIT"
distfiles="${FREEDESKTOP_SITE}/${pkgname}/release/$pkgname-$version.tar.bz2"
checksum=e10ccf1e26b0968f61d81037af1147fea28e86bfd159ffd8cfd5a486da126ce4
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() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
vmove usr/share/man/man3
vmove usr/share/doc
}
}