void-packages/srcpkgs/freetype/template

40 lines
1.2 KiB
Bash

# Template file for 'freetype'
pkgname=freetype
version=2.13.2
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=12991c4e55c506dd7f9b765933e62fd2be2e06d421505d7950a132e4f1bb484d
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
}
}