aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ttf-symbola
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-06-14 12:18:25 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-06-14 12:18:25 +0200
commit254eea7aa00d65b5252d2a1e0f1db8bec0b0539d (patch)
tree5f8c899f27d511e64971bf185d76c893195c4a1a /testing/ttf-symbola
parent363ffedf97428f5f5e70d3490064dfd7ada535da (diff)
downloadaports-254eea7aa00d65b5252d2a1e0f1db8bec0b0539d.tar.bz2
aports-254eea7aa00d65b5252d2a1e0f1db8bec0b0539d.tar.xz
testing/ttf-symbola: new aport
Diffstat (limited to 'testing/ttf-symbola')
-rw-r--r--testing/ttf-symbola/45-symbola.conf12
-rw-r--r--testing/ttf-symbola/90-tt-symbola.conf26
-rw-r--r--testing/ttf-symbola/APKBUILD51
3 files changed, 89 insertions, 0 deletions
diff --git a/testing/ttf-symbola/45-symbola.conf b/testing/ttf-symbola/45-symbola.conf
new file mode 100644
index 0000000000..4cdaf1f464
--- /dev/null
+++ b/testing/ttf-symbola/45-symbola.conf
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <alias>
+ <family>Symbola</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+
+</fontconfig>
diff --git a/testing/ttf-symbola/90-tt-symbola.conf b/testing/ttf-symbola/90-tt-symbola.conf
new file mode 100644
index 0000000000..14a3211b7d
--- /dev/null
+++ b/testing/ttf-symbola/90-tt-symbola.conf
@@ -0,0 +1,26 @@
+<?xml version='1.0'?>
+<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
+<fontconfig>
+
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Symbola</string>
+ </test>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ </match>
+
+</fontconfig>
diff --git a/testing/ttf-symbola/APKBUILD b/testing/ttf-symbola/APKBUILD
new file mode 100644
index 0000000000..def66d1ea0
--- /dev/null
+++ b/testing/ttf-symbola/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=ttf-symbola
+pkgver=7.21
+pkgrel=0
+pkgdesc="Symbola is a free symbol-type font."
+url="http://users.teilar.gr/~g1951d/"
+arch="noarch"
+license="custom"
+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://users.teilar.gr/~g1951d/Symbola.zip
+ 45-symbola.conf
+ 90-tt-symbola.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="9c8d59868988659dd7fd923c69433cd7 ttf-symbola-7.21.zip
+ea68708c13c24670b7affa2ab5441eaa 45-symbola.conf
+b85c574d01a84a86f9edc5611d044a3f 90-tt-symbola.conf"
+sha256sums="d892c4959af805fc790a5061e623942862e99d14ed157101eec472c410de156b ttf-symbola-7.21.zip
+9b34927b63d6390d3cfe79bce5dcfc3f180b93be5ea9e2b4b5c5f8d89a8093e9 45-symbola.conf
+0f5d31c3fe7af42e8d90a8311a49d84bf60c385983ca9f514cf4eccf40135880 90-tt-symbola.conf"
+sha512sums="a112ba8cd2a65b4a6a45c5b0e03fc01e9a1b16ce922032b77f40a1bc13c78238c6bbd7ea2276f9a13fffd3b6b5ba07632b5f4c19b167cd9158bab6ad2e6a8ed8 ttf-symbola-7.21.zip
+e30c8c2ccf70f89602e2326fc969d1ccaa1a14fb07ff19314d98554c1f3051078476a3fb8bce2ee56e22cd1574cd5d6fd2efd5eb4ca88ca04e9cd4586e29c4fe 45-symbola.conf
+af22a299541b042694ce1b962beef101b612a0992318fb8c9a003defbd4e53c2ffbcb9f584eaa8d0b1fd55cfa175c978aaa495837242dfa38c74d51b19d11044 90-tt-symbola.conf"