aboutsummaryrefslogtreecommitdiffstats
path: root/testing/terminus-font/APKBUILD
blob: 1a98fa58750ff4784f644f3f7a79e4a01e3acfc8 (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
53
54
55
56
57
58
# Contributor: Orion <systmkor_at_gmail.com>
# Maintainer: Orion <systmkor_at_gmail.com>
# Reference
#   https://www.archlinux.org/packages/community/any/terminus-font/

pkgname=terminus-font
pkgver=4.39
pkgrel=0
pkgdesc="Monospace bitmap font (for X11 and console)"
url="http://sourceforge.net/projects/terminus-font/"
arch="noarch"
license="GPL2 custom:OFL"
depends=""
depends_dev=""
makedepends="$depends_dev 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}
prepare() {
	return 0
}

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

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	for file in README README-BG; do
		mv "${file}" "$pkgdir"/usr/share/doc/$pkgname/ || return 1
	done
	
	install -Dm644 "${_builddir}/75-yes-terminus.conf" \
		"$pkgdir/etc/fonts/conf.avail/75-yes-terminus.conf"
	install -Dm644 "${_builddir}/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 .
}

md5sums="1ec1bee67a1c017f349bc8558b2d4fa6  terminus-font-4.39.tar.gz"
sha256sums="3108383986b365a4b9cc08c31a4195196f6de974d2735d77f6c6efa9feb1f5bf  terminus-font-4.39.tar.gz"
sha512sums="d2b1c55584eabf423a455ea11d90ba8037b4e5823c677a8c604de1e41c55d829b743db2d1932cd755064db681fcd0b5be8484439ddde4394955d0af5174ff591  terminus-font-4.39.tar.gz"