void-packages/srcpkgs/freetype/template
2015-06-05 02:27:19 +02:00

56 lines
1.6 KiB
Bash

# Template build file 'freetype'.
pkgname=freetype
version=2.5.5
revision=4
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="zlib-devel bzip2-devel libpng-devel"
short_desc="Font rendering engine and library API"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.freetype.org/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=387bcc4b780b12484aa2ec9f7db1a55d8286eb5639f45fbc0fbba7a4e5a1afb9
build_options="ultimate"
desc_option_ultimate="Enable ultimate patchset"
if [ ${build_option_ultimate} ]; then
_ultimate_version="2015-06-01"
_ultimate_wrksrc="${XBPS_BUILDDIR}/fontconfig-ultimate-${_ultimate_version}/"
distfiles+=" https://github.com/bohoomil/fontconfig-ultimate/archive/${_ultimate_version}.tar.gz"
checksum+=" b8374961e5ce5412bb06e2bcb06aa3e3a4f7681b2edf3c305a159023f2eef45b"
conf_files+=" /etc/profile.d/infinality-settings.sh"
post_extract() {
msg_normal "Applying ultimate patchset"
for P in ${_ultimate_wrksrc}/${pkgname}/*.patch; do
patch -p1 < $P
done
}
post_install() {
vmkdir etc/profile.d
vinstall ${_ultimate_wrksrc}/${pkgname}/infinality-settings.sh 644 etc/profile.d
}
else
post_extract() {
msg_normal "Applying freetype patches"
for P in ${FILESDIR}/*.patch; do
patch -p0 < $P
done
}
fi
freetype-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
for f in bin include share; do
vmove usr/${f}
done
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}