aboutsummaryrefslogtreecommitdiffstats
path: root/testing/otf-cantarell
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-06-14 13:18:35 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-06-14 13:18:35 +0200
commit7ed8dae30291a91be1f65e3171c54439085bb41f (patch)
treeb2666e58904538fc19f7c23c1c7f85f7861ce560 /testing/otf-cantarell
parentd5cadfd321b7ca88b162f8894b11f26a0f856d27 (diff)
downloadaports-7ed8dae30291a91be1f65e3171c54439085bb41f.tar.bz2
aports-7ed8dae30291a91be1f65e3171c54439085bb41f.tar.xz
testing/otf-cantarell: new aport
Diffstat (limited to 'testing/otf-cantarell')
-rw-r--r--testing/otf-cantarell/45-cantarell.conf12
-rw-r--r--testing/otf-cantarell/90-non-tt-cantarell.conf50
-rw-r--r--testing/otf-cantarell/APKBUILD63
3 files changed, 125 insertions, 0 deletions
diff --git a/testing/otf-cantarell/45-cantarell.conf b/testing/otf-cantarell/45-cantarell.conf
new file mode 100644
index 0000000000..ab8645507f
--- /dev/null
+++ b/testing/otf-cantarell/45-cantarell.conf
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <alias>
+ <family>Cantarell</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+
+</fontconfig>
diff --git a/testing/otf-cantarell/90-non-tt-cantarell.conf b/testing/otf-cantarell/90-non-tt-cantarell.conf
new file mode 100644
index 0000000000..081668b68e
--- /dev/null
+++ b/testing/otf-cantarell/90-non-tt-cantarell.conf
@@ -0,0 +1,50 @@
+<?xml version='1.0'?>
+<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
+<fontconfig>
+
+ <match target="font">
+ <test name="family">
+ <string>Cantarell</string>
+ </test>
+ <edit name="autohint" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="family">
+ <string>Cantarell</string>
+ </test>
+ <test name="weight" compare="less">
+ <const>medium</const>
+ </test>
+ <test name="pixelsize" compare="more">
+ <double>10.5</double>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>13.5</double>
+ </test>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ </match>
+
+</fontconfig>
diff --git a/testing/otf-cantarell/APKBUILD b/testing/otf-cantarell/APKBUILD
new file mode 100644
index 0000000000..06a6376807
--- /dev/null
+++ b/testing/otf-cantarell/APKBUILD
@@ -0,0 +1,63 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=otf-cantarell
+pkgver=0.0.16
+pkgrel=0
+pkgdesc="Cantarell font family."
+url="http://abattis.org/cantarell/"
+arch="noarch"
+license="GPL2"
+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="https://download.gnome.org/sources/cantarell-fonts/0.0/cantarell-fonts-$pkgver.tar.xz
+ 45-cantarell.conf
+ 90-non-tt-cantarell.conf"
+
+_builddir="$srcdir"/cantarell-fonts-$pkgver
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --with-fontdir=/usr/share/fonts/$pkgname \
+ --with-configdir=/etc/fonts/conf.avail \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+ mkdir -p "$pkgdir"/etc/fonts/conf.avail \
+ "$pkgdir"/etc/fonts/conf.d
+ for j in "$srcdir"/*.conf; do
+ install -m644 "$j" \
+ "$pkgdir"/etc/fonts/conf.avail/ || return 1
+ done
+ for k in "$pkgdir"/etc/fonts/conf.avail/*.conf; do
+ cd "$pkgdir"/etc/fonts/conf.d
+ ln -sf /etc/fonts/conf.avail/"${k##*/}"
+ done
+}
+
+md5sums="6665af844817ec1390f8ae2a16feb369 cantarell-fonts-0.0.16.tar.xz
+e47490547662d4ffc08a30ceef41ebae 45-cantarell.conf
+ece1ab6af1de1a56c368d8fa814ad9c2 90-non-tt-cantarell.conf"
+sha256sums="15bf87555321556750bc68ace360f3df420359a8ab257e15c44fb69710152f1c cantarell-fonts-0.0.16.tar.xz
+26e2eaff8c5f930602be0b247aef7d67a74d7c0a30c16202c7f75bb51a770154 45-cantarell.conf
+7f6b723cdd15c61b8b21912a7269d4e710af74222af8263de7cdd778110a7dbc 90-non-tt-cantarell.conf"
+sha512sums="12936e56d1dd3eac3db5a02b854769ba7c8bd06bf4942c505d81ea20529ee450e07f0f347e3861a49212ef7291452716537c05375f74877246f49d186ad681b0 cantarell-fonts-0.0.16.tar.xz
+eabc77c0e4b490341ca3d29cf3f6361005d3be2e2f91a9c821bd7ff0d7ee7d16e71793fbcdf42c922491c62474f421128f76f7b3412ceb833faef3a019ec94b6 45-cantarell.conf
+8e67b3ce3fc57243a146ad8f52fd1062f160759a89c2b0d999e26e52dbe2c95159b3190b3ae6dc90b1df246ca57eef14442393fa764ad657a7cecfe1663a54ae 90-non-tt-cantarell.conf"