45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Template file for 'fontconfig'
|
|
pkgname=fontconfig
|
|
version=2.14.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-static --enable-docs --with-cache-dir=/var/cache/${pkgname}"
|
|
hostmakedepends="gperf pkg-config python3"
|
|
makedepends="expat-devel freetype-devel"
|
|
checkdepends="curl unzip"
|
|
conf_files="/etc/fonts/fonts.conf"
|
|
short_desc="Library for configuring and customizing font access"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://www.fontconfig.org"
|
|
distfiles="${FREEDESKTOP_SITE}/${pkgname}/release/${pkgname}-${version}.tar.xz"
|
|
checksum=dcbeb84c9c74bbfdb133d535fe1c7bedc9f2221a8daf3914b984c44c520e9bac
|
|
|
|
post_install() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
sed -i 's,\(Cflags: -I${includedir}\).*,\1,g' ${DESTDIR}/usr/lib/pkgconfig/fontconfig.pc
|
|
fi
|
|
vlicense COPYING
|
|
}
|
|
|
|
fontconfig-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="fontconfig-${version}_${revision} expat-devel freetype-devel
|
|
libuuid-devel"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/gettext
|
|
}
|
|
}
|
|
|
|
fontconfig-doc_package() {
|
|
short_desc+=" - documentation"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|