freetype: create legacy freetype-config script

Some packages (e.g. ttfautohint) rely on freetype-config for
their configuration, so create a wrapper using pkg-config.

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-06-19 11:47:27 +02:00
parent 0f9ef34b09
commit 0d03c95918
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
1 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'freetype'
pkgname=freetype
version=2.9.1
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="bzip2-devel libpng-devel"
@ -32,11 +32,21 @@ pre_configure() {
fi
}
post_build() {
# Create a legacy /usr/bin/freetype-config script
vmkdir usr/bin
cat >> "${DESTDIR}"/usr/bin/freetype-config <<EOF
#!/bin/sh
pkg-config "\$@" freetype2
EOF
chmod 755 "${DESTDIR}"/usr/bin/freetype-config
}
freetype-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
for f in include share; do
for f in bin include share; do
vmove usr/${f}
done
vmove "usr/lib/*.a"