From b904aa2b887d9fff286c367f08e41d7facc4052d Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sun, 24 Sep 2017 17:27:12 +0800 Subject: testing/ttf-hack: new aport http://sourcefoundry.org/hack/ A typeface designed for source code --- testing/ttf-hack/APKBUILD | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 testing/ttf-hack/APKBUILD diff --git a/testing/ttf-hack/APKBUILD b/testing/ttf-hack/APKBUILD new file mode 100644 index 0000000000..11235d2431 --- /dev/null +++ b/testing/ttf-hack/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Ivan Tham +# Maintainer: Ivan Tham +pkgname=ttf-hack +pkgver=3.003 +pkgrel=0 +pkgdesc="A typeface designed for source code" +url="http://sourcefoundry.org/hack/" +arch="noarch" +options="!check" +license="MIT" +depends="fontconfig mkfontscale" +source="https://github.com/source-foundry/Hack/releases/download/v$pkgver/Hack-v$pkgver-ttf.tar.xz" +builddir="$srcdir/$pkgname-$pkgver" + +unpack() { + mkdir -p "$builddir" + busybox tar -Jxvf "$srcdir"/Hack-v$pkgver-ttf.tar.xz \ + -C "$builddir" > /dev/null +} + +package() { + cd $builddir + mkdir -p "$pkgdir"/usr/share/fonts/$pkgname + install -m644 *.ttf "$pkgdir"/usr/share/fonts/$pkgname +} + +sha512sums="d6480957ef77b0e117a564b76e7b8b041a28cfc89441d394a27e2a1b230cae7a67c0b9f3cbe6aab48c5d2cc832b0ea653017a3b925db1d0cc2885e02eab9a81d Hack-v3.003-ttf.tar.xz" -- cgit v1.2.3