40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'freetype'
|
|
pkgname=freetype
|
|
version=2.13.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-freetype-config"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="bzip2-devel libpng-devel brotli-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/"
|
|
# Should be using NONGNU_SITE instead, but that often redirects to outdated
|
|
# mirrors, causing fetching the distfile to fail.
|
|
distfiles="https://download-mirror.savannah.gnu.org/releases/freetype/freetype-${version}.tar.xz"
|
|
checksum=ea67e3b019b1104d1667aa274f5dc307d8cbd606b399bc32df308a77f1a564bf
|
|
|
|
post_patch() {
|
|
vsed -i -e "s/%PKG_CONFIG%/pkg-config/" builds/unix/freetype-config.in
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.TXT
|
|
vlicense docs/FTL.TXT
|
|
}
|
|
|
|
freetype-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin/freetype-config
|
|
vmove usr/share/man/man1/freetype-config.1
|
|
vmove usr/share/aclocal
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|