summaryrefslogblamecommitdiff
path: root/user/terminus-font/APKBUILD
blob: c3fc0fd6ffd1ed533f81ac8b9b493ec7cf9a797a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                         

           






                                                       

                                                                                                   

         


                                                  
                                                  



            

                                      


                                                                     





                                                                   

                                                                                                                                                                       
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=terminus-font
pkgver=4.47
pkgrel=0
pkgdesc="Monospace bitmap font (for X11 and console)"
url="http://terminus-font.sourceforge.net/"  # No HTTPS
arch="noarch"
options="!check"  # Fonts have no test suite
license="OFL-1.1"
depends=""
makedepends="bdftopcf python3"
source="https://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz
	75-yes-terminus.conf"

build() {
	./configure \
		--prefix=/usr \
		--psfdir=/usr/share/consolefonts \
		--x11dir=/usr/share/fonts/X11/misc
	make
}

package() {
	make DESTDIR="$pkgdir" install

	# Use custom fontconfig since the shipped one doesn't provide
	# a correct alias
	install -Dm644 "$srcdir"/75-yes-terminus.conf \
		"$pkgdir/etc/fonts/conf.avail/75-yes-terminus.conf"
	install -d "$pkgdir/etc/fonts/conf.d"
	cd "$pkgdir/etc/fonts/conf.d"
	ln -s /etc/fonts/conf.avail/75-yes-terminus.conf .
}

sha512sums="09455d107a09c422f4fedfcc70ae1483063c844fb01b0adfa3d2a0e28c9502e9ca922542b5ad735cbebb491d148c453d0213d61ebebf64c79f16cb582964fa47  terminus-font-4.47.tar.gz
ac7bdf367bbff1e5735b5bd65fc1bc06b55bcb72aaafeb08c7d8e969aabad863474b1104faa42ead7d838433c80cfc50f05578dad03c8081cd82cfda0af86a83  75-yes-terminus.conf"