diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 14 insertions, 4 deletions
@@ -1,14 +1,17 @@ pkgbase = uw-ttyp0-font pkgdesc = Bitmap monospaced font with unicode support and Powerline symbols pkgver = 1.3 - pkgrel = 6 + pkgrel = 7 url = http://people.mpi-inf.mpg.de/~uwe/misc/uw-ttyp0 arch = any license = custom makedepends = xorg-bdftopcf + makedepends = xorg-mkfontscale makedepends = perl + makedepends = fonttosfnt + conflicts = uw-ttyp0-otb + conflicts = otb-uw_ttyp0 source = http://people.mpi-inf.mpg.de/~uwe/misc/uw-ttyp0/uw-ttyp0-1.3.tar.gz sha512sums = 193966b826cafa313384f20e225d4a0b0057364ed23c2beaf27a59095fdb9079281fdc1d292592038512a56ec0387e531a28449344e2960f0ecd3e64c7a6f6e7 pkgname = uw-ttyp0-font - @@ -7,12 +7,13 @@ _encodings='uni i15' pkgname=uw-ttyp0-font pkgdesc='Bitmap monospaced font with unicode support and Powerline symbols' pkgver=1.3 -pkgrel=6 +pkgrel=7 arch=('any') url='http://people.mpi-inf.mpg.de/~uwe/misc/uw-ttyp0' source=("${url}/uw-ttyp0-${pkgver}.tar.gz") license=('custom') -makedepends=('xorg-bdftopcf' 'perl') +conflicts=('uw-ttyp0-otb' 'otb-uw_ttyp0') +makedepends=('xorg-bdftopcf' 'xorg-mkfontscale' 'perl' 'fonttosfnt') sha512sums=('193966b826cafa313384f20e225d4a0b0057364ed23c2beaf27a59095fdb9079281fdc1d292592038512a56ec0387e531a28449344e2960f0ecd3e64c7a6f6e7') prepare () { @@ -45,6 +46,11 @@ build () { cd "uw-ttyp0-${pkgver}" ./configure --prefix=/usr --pcfdir=/usr/share/fonts/misc make + mkdir -p otb + for i in genbdf/*.bdf ; do + o=${i#*/} + fonttosfnt -b -c -g 2 -m 2 -o "otb/${o%.bdf}.otb" "${i}" + done } package () { @@ -56,4 +62,5 @@ package () { "${pkgdir}/usr/share/fonts/misc/fonts.dir" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -m644 otb/*.otb "${pkgdir}/usr/share/fonts/misc" } |