diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2019-08-07 19:04:43 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-08-07 19:04:43 +0000 |
commit | 582a1403d093affb03380b0f585a195cb525bd35 (patch) | |
tree | 0e546fa8458dcca87ab1138c724bbf2154f32460 /testing/ttf-google-opensans | |
parent | 9dfd9d1f4a3f2e1c5700ce4a1eaaf2d1d5d7b0a9 (diff) | |
download | aports-582a1403d093affb03380b0f585a195cb525bd35.tar.bz2 aports-582a1403d093affb03380b0f585a195cb525bd35.tar.xz |
testing/ttf-google-opensans: new aport
Diffstat (limited to 'testing/ttf-google-opensans')
-rw-r--r-- | testing/ttf-google-opensans/APKBUILD | 27 | ||||
-rwxr-xr-x | testing/ttf-google-opensans/ttf-google-opensans.post-install | 4 |
2 files changed, 31 insertions, 0 deletions
diff --git a/testing/ttf-google-opensans/APKBUILD b/testing/ttf-google-opensans/APKBUILD new file mode 100644 index 0000000000..e3e91b29f3 --- /dev/null +++ b/testing/ttf-google-opensans/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname="ttf-google-opensans" +pkgver="20180610" +pkgrel=0 +pkgdesc="Humanist Sans Serif Typeface" +url="https://github.com/googlefonts/opensans" +arch="noarch" +license="Apache-2.0" +options="!check" +depends="fontconfig mkfontdir mkfontscale" +conflicts="ttf-opensans" +makedepends="font-util-dev" +install="$pkgname.post-install" +source="https://dev.alpinelinux.org/archive/$pkgname/$pkgname.zip" +builddir="$srcdir"/opensans-master + +build() { + return 0 +} + +package() { + install -d "$pkgdir/usr/share/fonts/TTF" + install -m644 hinted_ttfs/*.ttf "$pkgdir/usr/share/fonts/TTF/" +} + +sha512sums="4ff6537bb3bb69f3ebb6f0743cefaee72b39e878865e628f4612e28377749b68789ee9db9c04643a2a404d85063ee4c1939523bfd2a905bf44cc001e000ffa30 ttf-google-opensans.zip" diff --git a/testing/ttf-google-opensans/ttf-google-opensans.post-install b/testing/ttf-google-opensans/ttf-google-opensans.post-install new file mode 100755 index 0000000000..984457d3e1 --- /dev/null +++ b/testing/ttf-google-opensans/ttf-google-opensans.post-install @@ -0,0 +1,4 @@ +#!/bin/sh +fc-cache -f > /dev/null +mkfontscale /usr/share/fonts/TTF +mkfontdir /usr/share/fonts/TTF |