45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Template file for 'fontconfig'
|
|
pkgname=fontconfig
|
|
version=2.14.2
|
|
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}/fontconfig/release/fontconfig-${version}.tar.xz"
|
|
checksum=dba695b57bce15023d2ceedef82062c2b925e51f5d4cc4aef736cf13f60a468b
|
|
|
|
post_install() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
vsed -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
|
|
}
|
|
}
|