From 7ed8dae30291a91be1f65e3171c54439085bb41f Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Sun, 14 Jun 2015 13:18:35 +0200 Subject: testing/otf-cantarell: new aport --- testing/otf-cantarell/45-cantarell.conf | 12 +++++ testing/otf-cantarell/90-non-tt-cantarell.conf | 50 ++++++++++++++++++++ testing/otf-cantarell/APKBUILD | 63 ++++++++++++++++++++++++++ 3 files changed, 125 insertions(+) create mode 100644 testing/otf-cantarell/45-cantarell.conf create mode 100644 testing/otf-cantarell/90-non-tt-cantarell.conf create mode 100644 testing/otf-cantarell/APKBUILD 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 @@ + + + + + + Cantarell + + sans-serif + + + + 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 @@ + + + + + + + Cantarell + + + true + + + hintslight + + + true + + + true + + + + + + Cantarell + + + medium + + + 10.5 + + + 13.5 + + + false + + + hintfull + + + true + + + true + + + + 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 +# 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" -- cgit v1.2.3