aports

Custom Alpine Linux aports

git clone https://git.8pit.net/aports.git

 1# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
 2# Contributor: Orion <systmkor@gmail.com>
 3# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
 4pkgname=font-terminus
 5pkgver=4.49.1
 6pkgrel=5
 7pkgdesc="Monospace bitmap font (for X11 and console)"
 8url="https://terminus-font.sourceforge.net/"
 9arch="noarch"
10license="OFL-1.1"
11makedepends="bdftopcf fontconfig mkfontscale python3"
12subpackages="$pkgname-doc"
13source="https://sourceforge.net/projects/terminus-font/files/terminus-font-${pkgver%.*}/terminus-font-$pkgver.tar.gz"
14builddir="$srcdir/terminus-font-$pkgver"
15options="!check" # no test suite
16
17# renamed from terminus-font
18provides="terminus-font=$pkgver-r$pkgrel"
19replaces="terminus-font"
20
21prepare() {
22	default_prepare
23	patch -p0 -i alt/td1.diff
24	patch -p0 -i alt/ll2.diff
25}
26
27build() {
28	./configure \
29		--prefix=/usr \
30		--x11dir=/usr/share/fonts/misc \
31		--otbdir=/usr/share/fonts/misc \
32		--psfdir=/usr/share/consolefonts
33
34	make all otb
35}
36
37package() {
38	make DESTDIR="$pkgdir" install install-otb
39
40	install -d "$pkgdir"/usr/share/doc/$pkgname
41	install -Dm655 README README-BG \
42		"$pkgdir"/usr/share/doc/$pkgname/
43
44	install -Dm644 75-yes-terminus.conf \
45		"$pkgdir"/etc/fonts/conf.avail/75-yes-terminus.conf
46	install -Dm644 OFL.TXT \
47		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
48
49	install -d "$pkgdir/etc/fonts/conf.d"
50	cd "$pkgdir/etc/fonts/conf.d"
51	ln -s ../conf.avail/75-yes-terminus.conf .
52}
53
54sha512sums="
552e3a99960c459a453b5879bebbebeb653f0a22060177bf75c67bbeb7d32cfe1acce9e74a88fdc42e299b6dc402e0708552487abd26e80e985c7d6059b0d445a8  terminus-font-4.49.1.tar.gz
56"