summaryrefslogtreecommitdiff
path: root/manualPorts/gsfonts/Pkgfile
blob: d47485bbac044de1b9be8116dfa94fe0f9420f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Description: (URW)++ Core Font Set [Level 2]
# URL: https://github.com/ArtifexSoftware/urw-base35-fonts
# Maintainer: Erich Eckner, crux at eckner dot net
# Contributor: Gaetan Bisson, bisson@archlinux.org
# Contributor: Firmicus, francois.archlinux.org
# Contributor: dorphell, dorphell@archlinux.org
# Depends on: 

name=gsfonts
version=20180524
release=1
_commit=b758567463df532414c520cf008e27d9448b55a4  # master
source=("https://github.com/ArtifexSoftware/urw-base35-fonts/archive/${_commit}.tar.gz")

build() {
    cd urw-base35-fonts-${_commit}
    install -Dt "${PKG}/usr/share/fonts/${name}" -m644 fonts/*.otf
    install -Dt "${PKG}/usr/share/metainfo" -m644 appstream/*.xml

    install -d "${PKG}"/etc/fonts/conf.{avail,d}
    for _f in fontconfig/*.conf; do
        _fn="${PKG}/etc/fonts/conf.avail/69-${_f##*/}"
        install -m644 ${_f} "${_fn}"
        ln -srt "${PKG}/etc/fonts/conf.d" "${_fn}"
    done
}