* $XBPS_CROSS_TRIPLET-pkg-config is our wrapper not a real executable * In a build that have both freetype-config and pkg-config, $XBPS_CROSS_BASE will be prepended twice with current system, let's fix it.
36 lines
954 B
Bash
36 lines
954 B
Bash
# Template file for 'freetype'
|
|
pkgname=freetype
|
|
version=2.10.4
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--enable-freetype-config"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="bzip2-devel libpng-devel"
|
|
short_desc="Font rendering engine and library API"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later, FTL"
|
|
homepage="https://www.freetype.org/"
|
|
distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=86a854d8905b19698bbc8f23b860bc104246ce4854dcea8e3b0fb21284f75784
|
|
|
|
post_patch() {
|
|
vsed -i -e "s/%PKG_CONFIG%/pkg-config/" builds/unix/freetype-config.in
|
|
}
|
|
|
|
post_install() {
|
|
vlicense docs/LICENSE.TXT
|
|
vlicense docs/FTL.TXT
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|