summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 136ea679636a0d8872aca58f9e08b2ae14bcb1bc (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
# Maintainer: Hans-Nikolai Viessmann <hv15 @ hw.ac.uk>
_pkgname=ocr-a
pkgname=latex-${_pkgname}-font
pkgver=1.00
pkgrel=1
pkgdesc="Provides Type 1 fonts of the OCR-A typeface."
arch=('any')
url="http://www.ctan.org/tex-archive/fonts/ocr-a/"
license=('custom:CTAN-NoSell')
depends=('texlive-core')
install="${pkgname}.install"
source=("http://mirrors.ctan.org/fonts/${_pkgname}.zip"
        "LICENSE::http://texcatalogue.ctan.org/licenses.nosell.html")
md5sums=('67ce5623c064cda47dbd349a351c1a4a'
         '6511a45b4d21ddf87726c16caf8e8ef4')

prepare() {
	cd "$_pkgname"

    # We need to fix a distribution-related problem
    sed 's/input ocra/input ocr-a/' -i ocr10.mf ocr12.mf ocr16.mf
}

package() {
    install -d ${pkgdir}/usr/share/texmf/fonts/source/public
    cp -r ${_pkgname} ${pkgdir}/usr/share/texmf/fonts/source/public/

    # lets not forget the license
    install -d ${pkgdir}/usr/share/licenses/${pkgname}
    install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}