summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 40b8deca3e9a62d58921f6ad8ca054a4603eccef (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
43
44
45
46
47
48
49
# Contributor: orumin <dev@orum.in>

pkgname=adobe-base-14-fonts
pkgver=3.01
pkgrel=4
pkgdesc="Adobe base 14 fonts (Courier, Helvetica, Times, Symbol, ZapfDingbats with Type1)"
url="ftp://ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/3.x/"
license=('custom')
arch=('any')
makedepends=('t1utils' 't1lib')
install=ttf.install
source=("http://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/vendor/adobe/adobe/acrobatreader/unix/3.x/acroread_linux_301.tar.gz")
sha256sums=('be4ff9d8db2521a5b3f6e31e68ba1118b8c114862abec2a1dd1043e21f76d91b')

build() {
    cd "${srcdir}"
    tar -pxf READ.TAR

    cd Fonts
    t1binary Courier               pcrr8a.pfb
    t1binary Courier-Bold          pcrb8a.pfb
    t1binary Courier-BoldOblique   pcrbo8a.pfb
    t1binary Courier-Oblique       pcrro8a.pfb
    t1binary Helvetica             phvr8a.pfb
    t1binary Helvetica-Bold        phvb8a.pfb
    t1binary Helvetica-BoldOblique phvbo8a.pfb
    t1binary Helvetica-Oblique     phvro8a.pfb
    t1binary Symbol                psyr.pfb
    t1binary Times-Bold            ptmb8a.pfb
    t1binary Times-BoldItalic      ptmbi8a.pfb
    t1binary Times-Italic          ptmri8a.pfb
    t1binary Times-Roman           ptmr8a.pfb
    t1binary ZapfDingbats          pzdr.pfb

    find . -iname '*.pfb' -exec type1afm {} \;
}

package() {
    cd "${srcdir}"

    install -d "${pkgdir}/usr/share/fonts/Type1/"
    install -d "${pkgdir}/usr/share/licenses/${pkgname}"

    install -Dm644 LICREAD.TXT "${pkgdir}/usr/share/licenses/${pkgname}/"

    cd Fonts
    find . -iname '*.pfb' -exec install -Dm644 {} "${pkgdir}/usr/share/fonts/Type1/"{} \;
    find . -iname '*.afm' -exec install -Dm644 {} "${pkgdir}/usr/share/fonts/Type1/"{} \;
}