38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
# Template file for 'freetype'
|
|
pkgname=freetype
|
|
version=2.12.1
|
|
revision=2
|
|
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/"
|
|
distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=4766f20157cc4cf0cd292f80bf917f92d1c439b243ac3018debf6b9140c41a7f
|
|
|
|
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
|
|
}
|
|
}
|