summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoroi_wtf2023-01-27 11:16:47 +0100
committeroi_wtf2023-01-27 11:16:47 +0100
commit7a8baa7c00020ce82ce75506d5fb09ecf3e4bab3 (patch)
treec330545b55941ef79b5f776874c0fb58fcd2edbf
parentad3b3f4f7eb4fbda771ba60bae8141eef6613666 (diff)
downloadaur-terminus-font-td1.tar.gz
upgpkg: terminus-font-td1 4.49.1-3
match terminus-font in [community] regarding grub fonts
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD12
2 files changed, 13 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fe043664a94..3886c0dbfa1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,15 @@
pkgbase = terminus-font-td1
pkgdesc = Monospace bitmap font (for X11 and console) with td1 patch (centered ascii tilde)
pkgver = 4.49.1
- pkgrel = 2
+ pkgrel = 3
url = http://terminus-font.sourceforge.net/
arch = any
license = GPL2
license = custom:OFL
makedepends = xorg-bdftopcf
makedepends = python
+ makedepends = grub
+ makedepends = freetype2
provides = terminus-font
conflicts = terminus-font
conflicts = terminus-font-otb
diff --git a/PKGBUILD b/PKGBUILD
index 5d96441b58b..c1c94b93d1c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,14 +9,14 @@
_pkgname=terminus-font
pkgname=${_pkgname}-td1
pkgver=4.49.1
-pkgrel=2
+pkgrel=3
pkgdesc='Monospace bitmap font (for X11 and console) with td1 patch (centered ascii tilde)'
url='http://terminus-font.sourceforge.net/'
arch=('any')
license=('GPL2' 'custom:OFL')
-makedepends=('xorg-bdftopcf' 'python')
+makedepends=('xorg-bdftopcf' 'python' 'grub' 'freetype2')
conflicts=('terminus-font' 'terminus-font-otb')
provides=('terminus-font')
@@ -43,6 +43,10 @@ build() {
--otbdir=/usr/share/fonts/misc \
--psfdir=/usr/share/kbd/consolefonts
make all otb
+ # build grub fonts
+ for i in *.bdf; do
+ grub-mkfont -o "$(basename "$i" .bdf).pf2" "$i"
+ done
}
package() {
@@ -56,6 +60,10 @@ package() {
install -d "$pkgdir/usr/share/fontconfig/conf.default"
ln -sr "$pkgdir/usr/share/fontconfig/conf.avail/75-yes-terminus.conf" \
"$pkgdir/usr/share/fontconfig/conf.default/75-yes-terminus.conf"
+ cd terminus-font-$pkgver
+ for i in *.pf2; do
+ install -D -m644 $i "$pkgdir/usr/share/grub/$i"
+ done
}
# vim:set ts=2 sw=2 et: