mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
freetype: added ultimate patchset
This commit is contained in:
parent
9c4aa9b6b7
commit
df5008fd1f
3 changed files with 31 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template build file 'freetype'.
|
# Template build file 'freetype'.
|
||||||
pkgname=freetype
|
pkgname=freetype
|
||||||
version=2.5.5
|
version=2.5.5
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="zlib-devel bzip2-devel libpng-devel"
|
makedepends="zlib-devel bzip2-devel libpng-devel"
|
||||||
|
@ -12,6 +12,36 @@ license="GPL-2"
|
||||||
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
||||||
checksum=387bcc4b780b12484aa2ec9f7db1a55d8286eb5639f45fbc0fbba7a4e5a1afb9
|
checksum=387bcc4b780b12484aa2ec9f7db1a55d8286eb5639f45fbc0fbba7a4e5a1afb9
|
||||||
|
|
||||||
|
build_options="ultimate"
|
||||||
|
desc_option_ultimate="Enable ultimate patchset"
|
||||||
|
|
||||||
|
if [ ${build_option_ultimate} ]; then
|
||||||
|
_ultimate_version="2015-04"
|
||||||
|
_ultimate_wrksrc="${XBPS_BUILDDIR}/fontconfig-ultimate-${_ultimate_version}/"
|
||||||
|
distfiles+=" https://github.com/bohoomil/fontconfig-ultimate/archive/${_ultimate_version}.tar.gz"
|
||||||
|
checksum+=" e3bc9dd9c145156bd7bfa8e70c2328f47be6873da31c319bc594a5819afb8732"
|
||||||
|
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() {
|
freetype-devel_package() {
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
|
|
Loading…
Add table
Reference in a new issue