void-packages/srcpkgs/gsfonts/template

42 lines
1.1 KiB
Bash

# Template file for 'gsfonts'
pkgname=gsfonts
version=20200910
revision=1
depends="font-util"
short_desc="URW+ base35 fonts"
maintainer="Orphaned <orphan@voidlinux.org>"
license="AGPL-3.0-or-later"
homepage="https://github.com/ArtifexSoftware/urw-base35-fonts"
distfiles="https://github.com/ArtifexSoftware/urw-base35-fonts/archive/refs/tags/${version}.tar.gz"
checksum=e0d9b7f11885fdfdc4987f06b2aa0565ad2a4af52b22e5ebf79e1a98abd0ae2f
font_dirs="/usr/share/fonts/OTF/
/usr/share/fonts/TTF
/usr/share/fonts/Type1"
do_install() {
for f in ${wrksrc}/fonts/*.otf; do
vinstall $f 644 usr/share/fonts/OTF/
done
for f in ${wrksrc}/fonts/*.ttf; do
vinstall $f 644 usr/share/fonts/TTF/
done
for f in ${wrksrc}/fonts/*.{afm,t1}; do
vinstall $f 644 usr/share/fonts/Type1/
done
for f in ${wrksrc}/appstream/*.xml; do
vinstall $f 644 usr/share/metainfo/
done
for f in ${wrksrc}/fontconfig/*.conf; do
vmkdir etc/fonts/conf.d
install -Dm 644 $f ${DESTDIR}/usr/share/fontconfig/conf.avail/61-${f##*/}
ln -sf ../../../usr/share/fontconfig/conf.avail/61-${f##*/} ${DESTDIR}/etc/fonts/conf.d/
done
vlicense COPYING
vlicense LICENSE
}