diff options
author | root <root@rshg054.dnsready.net> | 2012-11-22 02:31:09 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-11-22 02:31:09 -0800 |
commit | 38ea2e71952c00f18230ed0e691532aadff4e2c1 (patch) | |
tree | bc1c7cfd697773062d53a0a23b35afdb0fc775c2 /pcr/ttf-roboto | |
parent | f48f6c82e23a3bacb8a0952c2d2cf9af1e6bf42d (diff) |
Thu Nov 22 02:27:52 PST 2012
Diffstat (limited to 'pcr/ttf-roboto')
-rw-r--r-- | pcr/ttf-roboto/PKGBUILD | 25 | ||||
-rw-r--r-- | pcr/ttf-roboto/ttf-roboto.install | 15 |
2 files changed, 40 insertions, 0 deletions
diff --git a/pcr/ttf-roboto/PKGBUILD b/pcr/ttf-roboto/PKGBUILD new file mode 100644 index 000000000..9085985d7 --- /dev/null +++ b/pcr/ttf-roboto/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Michael Düll <mail@akurei.me> PGP-Key: D6777412 - Fingerprint: C972 8B50 9411 BBE1 5CA5 9906 5103 71F3 D677 7412 +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=ttf-roboto +pkgver=20121102 +pkgrel=1 +pkgdesc='The new system font of Android 4, Codename "Ice Cream Sandwich".' +arch=('any') +license=('APACHE') +url="https://developer.android.com/design/style/typography.html" +depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils') +install=$pkgname.install +source=( + "https://developer.android.com/downloads/design/Roboto_Hinted_20120823.zip" +) + +package() +{ + install -d $pkgdir/usr/share/fonts/TTF/ + install -m644 *.ttf $pkgdir/usr/share/fonts/TTF/ + install -d $pkgdir/usr/share/licenses/$pkgname/ + install -m644 $srcdir/COPYING.txt $pkgdir/usr/share/licenses/$pkgname/ +} + +sha512sums=('ce4af34d0a23dd4076d033dcb03f17335eb83317da72b45257291be3aa34ff589405bfdfb768faca769d401a9091b63e5f195704ed69874d7d17289ca436a785') diff --git a/pcr/ttf-roboto/ttf-roboto.install b/pcr/ttf-roboto/ttf-roboto.install new file mode 100644 index 000000000..7dde94b45 --- /dev/null +++ b/pcr/ttf-roboto/ttf-roboto.install @@ -0,0 +1,15 @@ +post_install() { + echo -n "Updating font cache... " + fc-cache -f > /dev/null + mkfontscale /usr/share/fonts/TTF + mkfontdir /usr/share/fonts/TTF + echo "done." +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |