You are not logged in.
Hi,
I'm about to submit my first PKGBUILD to AUR since the transition to AUR4.
This package contains the last (apparently) URW+ fonts to be distributed in Type 1 format - upstream switched those fonts to OTF this year. So I made this for those who prefer the 'old' font format and rending of these fonts.
I lifted this directly from the gsfonts 20150811-1 release and added 'conflicts' and 'provides' strings in order not to break anything.
---
PKGBUILD
# $Id$
# Maintainer: Luis Henrique Mello <lmello.009@gmail.com>
# Contributor: Firmicus <francois@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
pkgname=gsfonts-type1
_pkgname=urw-core35-fonts
pkgver=20150811
pkgrel=1
pkgdesc='URW+ Postscript core35 fonts - Type 1 Format'
url='http://git.ghostscript.com/?p=urw-core35-fonts.git'
arch=('any')
license=('AGPL3')
makedepends=('git')
depends=('xorg-font-utils' 'fontconfig')
provides=('gsfonts')
conflicts=('gsfonts')
source=("git://git.ghostscript.com/${_pkgname}.git#commit=c983ed400dc278dcf20bdff68252fad6d9db7af9")
sha1sums=('SKIP')
install=install
package() {
cd "${srcdir}/${_pkgname}"
install -d "${pkgdir}"/usr/share/fonts/Type1
install -m644 *.{pfb,pfm,afm} "${pkgdir}"/usr/share/fonts/Type1
}
install
post_install() {
fc-cache -s > /dev/null
mkfontscale /usr/share/fonts/Type1
mkfontdir /usr/share/fonts/Type1
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
pacman -Ql gsfonts-type1
gsfonts-type1 /usr/
gsfonts-type1 /usr/share/
gsfonts-type1 /usr/share/fonts/
gsfonts-type1 /usr/share/fonts/Type1/
gsfonts-type1 /usr/share/fonts/Type1/a010013l.afm
gsfonts-type1 /usr/share/fonts/Type1/a010013l.pfb
gsfonts-type1 /usr/share/fonts/Type1/a010013l.pfm
gsfonts-type1 /usr/share/fonts/Type1/a010015l.afm
gsfonts-type1 /usr/share/fonts/Type1/a010015l.pfb
gsfonts-type1 /usr/share/fonts/Type1/a010015l.pfm
gsfonts-type1 /usr/share/fonts/Type1/a010033l.afm
gsfonts-type1 /usr/share/fonts/Type1/a010033l.pfb
gsfonts-type1 /usr/share/fonts/Type1/a010033l.pfm
gsfonts-type1 /usr/share/fonts/Type1/a010035l.afm
gsfonts-type1 /usr/share/fonts/Type1/a010035l.pfb
gsfonts-type1 /usr/share/fonts/Type1/a010035l.pfm
gsfonts-type1 /usr/share/fonts/Type1/b018012l.afm
gsfonts-type1 /usr/share/fonts/Type1/b018012l.pfb
gsfonts-type1 /usr/share/fonts/Type1/b018012l.pfm
gsfonts-type1 /usr/share/fonts/Type1/b018015l.afm
gsfonts-type1 /usr/share/fonts/Type1/b018015l.pfb
gsfonts-type1 /usr/share/fonts/Type1/b018015l.pfm
gsfonts-type1 /usr/share/fonts/Type1/b018032l.afm
gsfonts-type1 /usr/share/fonts/Type1/b018032l.pfb
gsfonts-type1 /usr/share/fonts/Type1/b018032l.pfm
gsfonts-type1 /usr/share/fonts/Type1/b018035l.afm
gsfonts-type1 /usr/share/fonts/Type1/b018035l.pfb
gsfonts-type1 /usr/share/fonts/Type1/b018035l.pfm
gsfonts-type1 /usr/share/fonts/Type1/c059013l.afm
gsfonts-type1 /usr/share/fonts/Type1/c059013l.pfb
gsfonts-type1 /usr/share/fonts/Type1/c059013l.pfm
gsfonts-type1 /usr/share/fonts/Type1/c059016l.afm
gsfonts-type1 /usr/share/fonts/Type1/c059016l.pfb
gsfonts-type1 /usr/share/fonts/Type1/c059016l.pfm
gsfonts-type1 /usr/share/fonts/Type1/c059033l.afm
gsfonts-type1 /usr/share/fonts/Type1/c059033l.pfb
gsfonts-type1 /usr/share/fonts/Type1/c059033l.pfm
gsfonts-type1 /usr/share/fonts/Type1/c059036l.afm
gsfonts-type1 /usr/share/fonts/Type1/c059036l.pfb
gsfonts-type1 /usr/share/fonts/Type1/c059036l.pfm
gsfonts-type1 /usr/share/fonts/Type1/d050000l.afm
gsfonts-type1 /usr/share/fonts/Type1/d050000l.pfb
gsfonts-type1 /usr/share/fonts/Type1/d050000l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n019003l.afm
gsfonts-type1 /usr/share/fonts/Type1/n019003l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n019003l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n019004l.afm
gsfonts-type1 /usr/share/fonts/Type1/n019004l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n019004l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n019023l.afm
gsfonts-type1 /usr/share/fonts/Type1/n019023l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n019023l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n019024l.afm
gsfonts-type1 /usr/share/fonts/Type1/n019024l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n019024l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n019043l.afm
gsfonts-type1 /usr/share/fonts/Type1/n019043l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n019043l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n019044l.afm
gsfonts-type1 /usr/share/fonts/Type1/n019044l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n019044l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n019063l.afm
gsfonts-type1 /usr/share/fonts/Type1/n019063l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n019063l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n019064l.afm
gsfonts-type1 /usr/share/fonts/Type1/n019064l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n019064l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n021003l.afm
gsfonts-type1 /usr/share/fonts/Type1/n021003l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n021003l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n021004l.afm
gsfonts-type1 /usr/share/fonts/Type1/n021004l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n021004l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n021023l.afm
gsfonts-type1 /usr/share/fonts/Type1/n021023l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n021023l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n021024l.afm
gsfonts-type1 /usr/share/fonts/Type1/n021024l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n021024l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n022003l.afm
gsfonts-type1 /usr/share/fonts/Type1/n022003l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n022003l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n022004l.afm
gsfonts-type1 /usr/share/fonts/Type1/n022004l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n022004l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n022023l.afm
gsfonts-type1 /usr/share/fonts/Type1/n022023l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n022023l.pfm
gsfonts-type1 /usr/share/fonts/Type1/n022024l.afm
gsfonts-type1 /usr/share/fonts/Type1/n022024l.pfb
gsfonts-type1 /usr/share/fonts/Type1/n022024l.pfm
gsfonts-type1 /usr/share/fonts/Type1/p052003l.afm
gsfonts-type1 /usr/share/fonts/Type1/p052003l.pfb
gsfonts-type1 /usr/share/fonts/Type1/p052003l.pfm
gsfonts-type1 /usr/share/fonts/Type1/p052004l.afm
gsfonts-type1 /usr/share/fonts/Type1/p052004l.pfb
gsfonts-type1 /usr/share/fonts/Type1/p052004l.pfm
gsfonts-type1 /usr/share/fonts/Type1/p052023l.afm
gsfonts-type1 /usr/share/fonts/Type1/p052023l.pfb
gsfonts-type1 /usr/share/fonts/Type1/p052023l.pfm
gsfonts-type1 /usr/share/fonts/Type1/p052024l.afm
gsfonts-type1 /usr/share/fonts/Type1/p052024l.pfb
gsfonts-type1 /usr/share/fonts/Type1/p052024l.pfm
gsfonts-type1 /usr/share/fonts/Type1/s050000l.afm
gsfonts-type1 /usr/share/fonts/Type1/s050000l.pfb
gsfonts-type1 /usr/share/fonts/Type1/s050000l.pfm
gsfonts-type1 /usr/share/fonts/Type1/z003034l.afm
gsfonts-type1 /usr/share/fonts/Type1/z003034l.pfb
gsfonts-type1 /usr/share/fonts/Type1/z003034l.pfm
Last edited by lmello (2016-08-07 00:20:28)
Fundamental Axiom of the Universe (aka Murphy's Law): Whatever can go wrong, will go wrong.
First Digital Deduction: Nothing obeys Murphy's Law so well as computers.
Second Digital Deduction: Everything go wrong at least once.
Third Digital Deduction: Things go wrong even when there's absolutely no possibility of anything go wrong.
Offline
post_install: Pacman now has hooks, so, for example, all font cache actions are done once at the end of the entire installation process (during an update, for example). I'm not sure where the wiki has infos about this, but the alpm-hooks(5) manpage should be a start.
EDIT: Your own hooks would go into /usr/share/libalpm/hooks.
EDIT: I have had a look at some font packages from the repos, it looks like there is no default hook for fontconfig yet. I'd say that part of your PKGBUILD is fine, at least according to what's normal at the moment.
Last edited by Awebb (2016-08-10 11:04:01)
Offline