2016-02-10 12:29:04 +02:00
|
|
|
#
|
2015-08-18 23:54:23 +03:00
|
|
|
# Original maintainer: Alexander Rødseth <rodseth@gmail.com>
|
2017-10-20 14:12:31 +03:00
|
|
|
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
|
2015-08-18 23:54:23 +03:00
|
|
|
# Contributor: Kristoffer Fossgård <kfs1@online.no>
|
|
|
|
# Contributor: clonejo <clonejo@shakik.de>
|
|
|
|
# Contributor: Daniel Micay <danielmicay@gmail.com>
|
|
|
|
#
|
|
|
|
# This is the modified version of the original archlinux terminus-font
|
|
|
|
# to incorporate most of the patches that I find really useful:
|
|
|
|
# br1 just for the sake of it
|
|
|
|
# dv1 because handwritten versions in a computer font suck
|
|
|
|
# ij1 because и ≠ u, need a way to tell them apart
|
|
|
|
# ll2 because ilI1
|
|
|
|
# td1 because tilda should be in the middle
|
2019-05-08 18:09:25 +03:00
|
|
|
#
|
|
|
|
# boxdraw patch added to prevent box lines from being thick in terminals with bold font
|
2015-08-18 23:54:23 +03:00
|
|
|
|
|
|
|
pkgname=terminus-font-patched
|
|
|
|
_pkgname=terminus-font
|
2021-01-14 18:25:49 +02:00
|
|
|
pkgver=4.49.1
|
|
|
|
pkgrel=1
|
|
|
|
|
2015-08-18 23:54:23 +03:00
|
|
|
pkgdesc='Monospace bitmap font (for X11 and console)'
|
2021-01-14 18:25:49 +02:00
|
|
|
url='http://terminus-font.sourceforge.net/'
|
2015-08-18 23:54:23 +03:00
|
|
|
arch=('any')
|
|
|
|
license=('GPL2' 'custom:OFL')
|
2021-01-14 18:25:49 +02:00
|
|
|
makedepends=('xorg-bdftopcf' 'python')
|
2015-08-18 23:54:23 +03:00
|
|
|
provides=($_pkgname)
|
|
|
|
conflicts=($_pkgname)
|
2021-01-14 18:25:49 +02:00
|
|
|
install='terminus-font-patched.install'
|
|
|
|
source=("http://downloads.sourceforge.net/project/$_pkgname/$_pkgname-${pkgver%.1}/$_pkgname-$pkgver.tar.gz"
|
|
|
|
fix-75-yes-terminus.patch)
|
|
|
|
sha256sums=('d961c1b781627bf417f9b340693d64fc219e0113ad3a3af1a3424c7aa373ef79'
|
|
|
|
'ddd86485cf6d54e020e36f1c38c56e8b21b57c23a5d76250e15c1d16fed9caa5')
|
2015-08-18 23:54:23 +03:00
|
|
|
|
|
|
|
prepare() {
|
2021-01-14 18:25:49 +02:00
|
|
|
cd "terminus-font-$pkgver"
|
|
|
|
patch -p1 <"$srcdir"/fix-75-yes-terminus.patch
|
2015-08-18 23:54:23 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$_pkgname-$pkgver"
|
2021-01-14 18:25:49 +02:00
|
|
|
|
2015-08-18 23:54:23 +03:00
|
|
|
patch -p0 -i alt/br1.diff
|
|
|
|
patch -p0 -i alt/dv1.diff
|
|
|
|
patch -p0 -i alt/ij1.diff
|
|
|
|
patch -p0 -i alt/ll2.diff
|
|
|
|
patch -p0 -i alt/td1.diff
|
2021-01-14 18:25:49 +02:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--x11dir=/usr/share/fonts/misc \
|
|
|
|
--otbdir=/usr/share/fonts/misc \
|
2015-08-18 23:54:23 +03:00
|
|
|
--psfdir=/usr/share/kbd/consolefonts
|
2021-01-14 18:25:49 +02:00
|
|
|
make all otb
|
2015-08-18 23:54:23 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-01-14 18:25:49 +02:00
|
|
|
make -C "$_pkgname-$pkgver" DESTDIR="$pkgdir" install install-otb
|
2016-02-10 12:29:04 +02:00
|
|
|
|
2015-08-18 23:54:23 +03:00
|
|
|
install -Dm644 "$srcdir/$_pkgname-$pkgver/75-yes-terminus.conf" \
|
|
|
|
"$pkgdir/etc/fonts/conf.avail/75-yes-terminus.conf"
|
|
|
|
install -Dm644 "$srcdir/$_pkgname-$pkgver/OFL.TXT" \
|
|
|
|
"$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
|
|
|
|
install -d "$pkgdir/etc/fonts/conf.d"
|
2016-02-10 12:29:04 +02:00
|
|
|
|
2015-08-18 23:54:23 +03:00
|
|
|
cd "$pkgdir/etc/fonts/conf.d"
|
|
|
|
ln -s ../conf.avail/75-yes-terminus.conf .
|
|
|
|
}
|
|
|
|
|
2016-02-10 12:29:04 +02:00
|
|
|
# getver: terminus-font.sf.net
|
2015-08-18 23:54:23 +03:00
|
|
|
# vim:set ts=2 sw=2 et:
|