On 10/30/2017 5:55 PM, Yaakov Selkowitz wrote:
It would also be nice if the updated URW fonts[2] would also be installed under e.g. /usr/share/fonts/urw-base35.
Is the attached what you had in mind? Following Fedora, I only packaged *.t1 and *.afm files, even though the source package also contains *.otf and *.ttf.
Ken
# http://pkgs.fedoraproject.org/cgit/rpms/urw-base35-fonts.git/tree/urw-base35-fonts.spec inherit font NAME="urw-base35-fonts" VERSION=20170801 RELEASE=1 CATEGORY="Graphics X11" SUMMARY="The 35 fonts in the PostScript Level 2 Core Font Set" DESCRIPTION="The 35 fonts in the PostScript Level 2 Core Font Set" HOMEPAGE="https://github.com/ArtifexSoftware/urw-base35-fonts/" SRC_URI="${HOMEPAGE}/archive/${VERSION}.tar.gz" OBSOLETES="ghostscript-fonts-std" src_compile() { : } src_test() { : } src_install() { cd ${S} fontinto ${NAME%-fonts} dofont fonts/*.t1 dofont fonts/*.afm insinto /usr/share/ghostscript/fonts doins fonts/*.t1 doins fonts/*.afm cd fontconfig for f in *.conf do newfontconf ${f} 60-${f} done } ARCH="noarch"