void-packages/srcpkgs/freetype/template

40 lines
1.2 KiB
Bash

# Template file for 'freetype'
pkgname=freetype
version=2.13.0
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=5ee23abd047636c24b2d43c6625dcafc66661d1aca64dec9e0d05df29592624c
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
}
}