68 lines
2.2 KiB
Bash
68 lines
2.2 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=terminus-font
|
|
pkgver=4.49.1
|
|
pkgrel=06
|
|
pkgdesc='Monospace bitmap font (for X11 and console)'
|
|
url='http://terminus-font.sourceforge.net/'
|
|
makedepends=('xorg-bdftopcf' 'python' 'grub' 'freetype2')
|
|
conflicts=('terminus-font-otb')
|
|
replaces=('terminus-font-otb')
|
|
source=("https://downloads.sourceforge.net/project/terminus-font/terminus-font-${pkgver%.1}/terminus-font-$pkgver.tar.gz"
|
|
fix-75-yes-terminus.patch)
|
|
|
|
prepare() {
|
|
cd "terminus-font-$pkgver"
|
|
patch -p1 <"$srcdir"/fix-75-yes-terminus.patch
|
|
}
|
|
|
|
build() {
|
|
cd "terminus-font-$pkgver"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--x11dir=/usr/share/fonts/misc \
|
|
--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() {
|
|
make -C "terminus-font-$pkgver" DESTDIR="$pkgdir" install install-otb
|
|
|
|
install -Dm644 "$srcdir/terminus-font-$pkgver/75-yes-terminus.conf" \
|
|
"$pkgdir/usr/share/fontconfig/conf.avail/75-yes-terminus.conf"
|
|
install -Dm644 "$srcdir/terminus-font-$pkgver/OFL.TXT" \
|
|
"$pkgdir/usr/share/licenses/terminus-font/LICENSE"
|
|
|
|
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
|
|
|
|
install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('GPL2' 'custom:OFL')
|
|
|
|
sha256sums=(d961c1b781627bf417f9b340693d64fc219e0113ad3a3af1a3424c7aa373ef79 # terminus-font-4.49.1.tar.gz
|
|
ddd86485cf6d54e020e36f1c38c56e8b21b57c23a5d76250e15c1d16fed9caa5) # fix-75-yes-terminus.patch
|
|
|
|
## 4d93bb5746ca69e2314c7cae4cc4c06006c13d4fe6e0e558e28bc59bc78f4a17 terminus-font-4.49.1-06-x86_64.pkg.tar.lz
|
|
|