aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ttf-courier-prime/APKBUILD
blob: f2f4c9cc5e293fe721acda2362b098120648128e (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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ttf-courier-prime
pkgver=1.203
pkgrel=0
pkgdesc="A free, improved, classical monospaced typeface."
url="http://quoteunquoteapps.com/courierprime/"
arch="noarch"
license="OFL"
depends="fontconfig"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
# added fontconfig configuration from:
# https://github.com/bohoomil/fontconfig-ultimate/tree/master/fontconfig_patches/fonts-settings
source="$pkgname-$pkgver.zip::http://quoteunquoteapps.com/downloads/courier-prime.zip
	45-courier-prime.conf
	90-tt-courier-prime.conf"

_builddir="$srcdir/Courier Prime"

build() {
	cd "$_builddir"
}

package() {
	mkdir -p "$pkgdir"/usr/share/fonts/$pkgname \
		"$pkgdir"/etc/fonts/conf.avail \
		"$pkgdir"/etc/fonts/conf.d
	
	for i in "$_builddir"/*.ttf; do
		install -m644 "$i" \
			"$pkgdir"/usr/share/fonts/$pkgname/ || return 1
	done
	
	for j in "$srcdir"/*.conf; do
		install -m644 "$j" \
			"$pkgdir"/etc/fonts/conf.avail/ || return 1
		cd "$pkgdir"/etc/fonts/conf.d
		ln -sf /etc/fonts/conf.avail/${j##*/}
	done
}
md5sums="cf79336ce1cf439560a5364ab7856738  ttf-courier-prime-1.203.zip
386cdeb1dcf7aa8d61b2676bb408071c  45-courier-prime.conf
34ad0a1eb3a1d7b436feb0347ab72a11  90-tt-courier-prime.conf"
sha256sums="d5d4faf1bee0d1f52bab1103cbfdfb354976331c86f999c110c22a098cb12d73  ttf-courier-prime-1.203.zip
bf60ee516132a80f4293b3418e5741121581cd4dc9c3080f05720b61d0b7006d  45-courier-prime.conf
98ca88805d49df11c362b24467b40aeedc4520cb16f4896ded02236b2785e0d6  90-tt-courier-prime.conf"
sha512sums="4a039d87ac236c96bf6b82e05bc3f9308ada20507bd6b2e6d265d0046b5c640daf4d1c19c3450131797cba575c60c651977bcfd51e791f7a59fa8c8718b96b28  ttf-courier-prime-1.203.zip
96287816f005e476a62998991ad20cfd2116d6ee9a7acaca8f1a0ed8bb9f77c14ab38b1cf487add099b082800659fbb51352fa170e13672bc354c35259ef89fc  45-courier-prime.conf
6a000366145a16746b3e5898bdc29b51f210c47145be1baf5077eb6407cdc448a91ed1e388c38eb3063e264a2642f7af7e340f76028200bed905d1d8f6910b02  90-tt-courier-prime.conf"