45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Template file for 'fontconfig'
|
|
pkgname=fontconfig
|
|
version=2.14.1
|
|
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=298e883f6e11d2c5e6d53c8a8394de58d563902cfab934e6be12fb5a5f361ef0
|
|
|
|
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
|
|
}
|
|
}
|