aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-06-14 12:11:23 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-06-14 12:11:23 +0200
commit46e7c4d4ff65c87f724ee42b3595ba0f5ed2cb17 (patch)
treeea07b0268241c3ce651351bc85c1b39f90940272 /testing
parent1780828a26f35106649f84946f1ca4e8854a6fb2 (diff)
downloadaports-46e7c4d4ff65c87f724ee42b3595ba0f5ed2cb17.tar.bz2
aports-46e7c4d4ff65c87f724ee42b3595ba0f5ed2cb17.tar.xz
ttf-courier-prime: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/ttf-courier-prime/45-courier-prime.conf12
-rw-r--r--testing/ttf-courier-prime/90-tt-courier-prime.conf26
-rw-r--r--testing/ttf-courier-prime/APKBUILD52
3 files changed, 90 insertions, 0 deletions
diff --git a/testing/ttf-courier-prime/45-courier-prime.conf b/testing/ttf-courier-prime/45-courier-prime.conf
new file mode 100644
index 0000000000..8611c0756b
--- /dev/null
+++ b/testing/ttf-courier-prime/45-courier-prime.conf
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <alias>
+ <family>Courier Prime</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+
+</fontconfig>
diff --git a/testing/ttf-courier-prime/90-tt-courier-prime.conf b/testing/ttf-courier-prime/90-tt-courier-prime.conf
new file mode 100644
index 0000000000..1f61e50d7a
--- /dev/null
+++ b/testing/ttf-courier-prime/90-tt-courier-prime.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>Courier Prime</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-courier-prime/APKBUILD b/testing/ttf-courier-prime/APKBUILD
new file mode 100644
index 0000000000..f2f4c9cc5e
--- /dev/null
+++ b/testing/ttf-courier-prime/APKBUILD
@@ -0,0 +1,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"