aboutsummaryrefslogtreecommitdiffstats
path: root/main/terminus-font/APKBUILD
blob: 97c8bab780c0e1154b6d0c3cc7b21b66567aa4be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Orion <systmkor@gmail.com>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=terminus-font
pkgver=4.40
pkgrel=1
pkgdesc="Monospace bitmap font (for X11 and console)"
url="http://terminus-font.sourceforge.net/"
arch="noarch"
license="custom"
depends=""
depends_dev=""
makedepends="bdftopcf fontconfig mkfontscale mkfontdir perl"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	make \
		prefix=/usr \
		x11dir=/usr/share/fonts/misc \
		psfdir=/usr/share/consolefonts
}

package() {
	cd "$builddir"
	make \
		prefix=/usr \
		x11dir=/usr/share/fonts/misc \
		psfdir=/usr/share/consolefonts \
		DESTDIR="$pkgdir" install \
		|| return 1

	install -d "$pkgdir"/usr/share/doc/$pkgname
	install -Dm655 README README-BG \
		"$pkgdir"/usr/share/doc/$pkgname/ || return 1
	
	install -Dm644 75-yes-terminus.conf \
		"$pkgdir"/etc/fonts/conf.avail/75-yes-terminus.conf
	install -Dm644 OFL.TXT \
		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE

	install -d "$pkgdir/etc/fonts/conf.d"
	cd "$pkgdir/etc/fonts/conf.d"
	ln -s ../conf.avail/75-yes-terminus.conf . || return 1
}

md5sums="1e1df0d2c612c374ebe7966f90f04e0c  terminus-font-4.40.tar.gz"
sha256sums="64f52c24d3f1c1e39f21e6c43077a9be3e21d4384f176f5766c00558ba670711  terminus-font-4.40.tar.gz"
sha512sums="843da1f51e37d48ae88c88def965ed96c2236c183fb596705290a96eba41256a02197a298439b83913eb7679b32c2a8f44dd04de031be4db56285efd3d4c6900  terminus-font-4.40.tar.gz"