aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ttf-merriweather-sans/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-06-14 13:43:19 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-06-14 13:43:19 +0200
commit90969f7494a648a0d18773cd3a4fa9c90ad4f116 (patch)
tree650ee95fdce84e18d3c68e6985504a1edef2684b /testing/ttf-merriweather-sans/APKBUILD
parent8d3ed34a9bb7b00471af7a1a3cde89cdb8b05a90 (diff)
downloadaports-90969f7494a648a0d18773cd3a4fa9c90ad4f116.tar.bz2
aports-90969f7494a648a0d18773cd3a4fa9c90ad4f116.tar.xz
testing/ttf-merriweather-sans: new aport
Diffstat (limited to 'testing/ttf-merriweather-sans/APKBUILD')
-rw-r--r--testing/ttf-merriweather-sans/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/ttf-merriweather-sans/APKBUILD b/testing/ttf-merriweather-sans/APKBUILD
new file mode 100644
index 0000000000..f1f660882d
--- /dev/null
+++ b/testing/ttf-merriweather-sans/APKBUILD
@@ -0,0 +1,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"