aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ttf-merriweather-sans/APKBUILD
blob: f1f660882de7fc7f66c001469af7491e97998978 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ttf-merriweather-sans
pkgver=1.003
pkgrel=0
pkgdesc="Merriweather Sans-Serif font family by Eben Sorkin."
url="http://sorkintype.com"
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.tar.xz::http://bohoomil.com/src/merriweather_sans_ib.tar.xz
	45-merriweather-sans.conf
	90-tt-merriweather-sans.conf"

_builddir="$srcdir"

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="7ef58ee17e636652de74be921cb2e7c1  ttf-merriweather-sans-1.003.tar.xz
47f8ede2c9291f7ff54f99a5cce439b7  45-merriweather-sans.conf
ba82876617eb14520e62af38051951ca  90-tt-merriweather-sans.conf"
sha256sums="ff0ee58e7067b5eb66397c3dc9521e539683945b3192f1912b985af3250122eb  ttf-merriweather-sans-1.003.tar.xz
d9b7a9dcf8f56d2beb30a2c508dc50c8fe7d180e04eb20c02788ec6849f84e5b  45-merriweather-sans.conf
4440e02af4d965734c91786f3ffc826ac66d0fcc570caa3719a26134e2252c72  90-tt-merriweather-sans.conf"
sha512sums="aadab0bfabfa537d6a9ee0dc81c6e75e0924537f2b433af24cfd832d8a25c994753195c2ab527fd1a9291fc6f6f2d32794631c509585e106b778452cd3dba9df  ttf-merriweather-sans-1.003.tar.xz
f3447599d9df6320732085a1322e0afdb0de781b4f3356e0c957ebb048fa372b3113afe7d4cc7d51e3560cfe6e400626c288968109866367ac5d880e22d3c013  45-merriweather-sans.conf
d3890791c2d716b3a35e0abf9b329e9cff723d3642aa687a7411269a8a189c5face07487198a737ad09d1d727f67cdf6fba820f9691b3905980fd00fd5901738  90-tt-merriweather-sans.conf"