summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0e523766189a0e3e725fadc409a86ee6c77205f (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: AdriĆ  Arrufat <swiftscyhe at gmail dot com>

_pkgname=sourceserifpro
pkgname=latex-${_pkgname}-font
pkgver=1.4
pkgrel=1
pkgdesc="Adobe's Source Serif Pro for TEX(-alike) systems"
arch=('any')
url="https://www.ctan.org/tex-archive/fonts/${_pkgname}"
license=('custom:OFL-1.1')
depends=('texlive-core')
conflicts=('texlive-fontsextra')
install="${pkgname}.install"
source=("http://mirrors.ctan.org/fonts/${_pkgname}.zip")
md5sums=('3adedeca7de9412ce1d0b8f409106a91')

package() {
    install -d ${pkgdir}/usr/share/texmf-dist/tex/latex/${_pkgname}
    install -Dm644 -t ${pkgdir}/usr/share/texmf-dist/tex/latex/${_pkgname} ${_pkgname}/tex/*

    install -d ${pkgdir}/usr/share/texmf-dist/fonts/enc/dvips/${_pkgname}
    find ${_pkgname}/fonts -name *enc \
    -exec install -Dm644 {} -t $pkgdir/usr/share/texmf-dist/fonts/enc/dvips/${_pkgname} \;

    install -d ${pkgdir}/usr/share/texmf-dist/fonts/opentype/adobe/${_pkgname}
    find ${_pkgname}/fonts -name *otf\
    -exec install -Dm644 {} -t $pkgdir/usr/share/texmf-dist/fonts/opentype/adobe/${_pkgname} \;

    install -d ${pkgdir}/usr/share/texmf-dist/fonts/type1/adobe/${_pkgname}
    find ${_pkgname}/fonts -name *pfb \
    -exec install -Dm644 {} -t $pkgdir/usr/share/texmf-dist/fonts/type1/adobe/${_pkgname} \;

    install -d ${pkgdir}/usr/share/texmf-dist/fonts/tfm/adobe/${_pkgname}
    find ${_pkgname}/fonts -name *tfm \
    -exec install -Dm644 {} -t $pkgdir/usr/share/texmf-dist/fonts/tfm/adobe/${_pkgname} \;

    install -d ${pkgdir}/usr/share/texmf-dist/fonts/vf/adobe/${_pkgname}
    find ${_pkgname}/fonts -name *vf\
    -exec install -Dm644 {} -t $pkgdir/usr/share/texmf-dist/fonts/vf/adobe/${_pkgname} \;

    install -Dm644 $_pkgname/doc/LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}