summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Farley2019-08-20 03:41:45 -0500
committerckath2019-08-20 18:32:31 +0200
commitb43bc1b3257dec7804cd73dbcb9fbd8a722daf1e (patch)
tree5b622b76c1f6a799d50e86eab76445c8b9f49e5c
parentb0feb15d5f5b860e74e82cbc66facb225fb0593f (diff)
downloadaur-b43bc1b3257dec7804cd73dbcb9fbd8a722daf1e.tar.gz
use fonttosfnt-git for conversion
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD12
-rwxr-xr-xotbconvert.pe7
3 files changed, 7 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a925a7894f9..76b97c7c317 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,16 +5,14 @@ pkgbase = dina-font-otb
url = https://www.dcmembers.com/jibsen/download/61/
arch = any
license = custom
- makedepends = fontforge
+ makedepends = fonttosfnt-git
depends = xorg-font-utils
depends = fontconfig
conflicts = dina-font
conflicts = dina-powerline
conflicts = dina-font-otb-alt
source = dina-2.92-new.zip::https://www.dcmembers.com/jibsen/download/61/?wpdmdl=61
- source = otbconvert.pe
md5sums = 028424baac750e9fd0f54df03202e5d0
- md5sums = ef3dae0059b22d7c232cbd04d9cffff8
pkgname = dina-font-otb
diff --git a/PKGBUILD b/PKGBUILD
index 58205eb9add..9a3a1483b21 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,11 +8,10 @@ arch=('any')
url="https://www.dcmembers.com/jibsen/download/61/"
license=('custom')
depends=('xorg-font-utils' 'fontconfig')
-makedepends=('fontforge')
+makedepends=('fonttosfnt-git')
conflicts=('dina-font' 'dina-powerline' 'dina-font-otb-alt')
-source=("dina-$pkgver-new.zip::https://www.dcmembers.com/jibsen/download/61/?wpdmdl=61" "otbconvert.pe")
-md5sums=('028424baac750e9fd0f54df03202e5d0'
- 'ef3dae0059b22d7c232cbd04d9cffff8')
+source=("dina-$pkgver-new.zip::https://www.dcmembers.com/jibsen/download/61/?wpdmdl=61")
+md5sums=('028424baac750e9fd0f54df03202e5d0')
_ex_pt() {
_pt=${1%.bdf}
@@ -22,8 +21,9 @@ _ex_pt() {
build() {
cd "$srcdir/BDF"
- sed -i 's/microsoft-cp1252/ISO8859-1/' *.bdf
- ../otbconvert.pe *.bdf
+ for f in *.bdf; do
+ fonttosfnt -o "${f/bdf/otb}" "$f"
+ done
}
package() {
diff --git a/otbconvert.pe b/otbconvert.pe
deleted file mode 100755
index 2d26b344303..00000000000
--- a/otbconvert.pe
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/usr/bin/fontforge
-i=1
-while ( i<$argc )
- Open($argv[i])
- Generate($argv[i]:r + ".otb")
- i = i+1
-endloop