From 9cce2f098d5d77a2748952e1221127b9f0614566 Mon Sep 17 00:00:00 2001 From: aurelien Date: Thu, 22 Nov 2012 09:49:46 +0100 Subject: + gtkmm pactools ttf-roboto --- pcr/ttf-roboto/PKGBUILD | 25 +++++++++++++++++++++++++ pcr/ttf-roboto/ttf-roboto.install | 15 +++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 pcr/ttf-roboto/PKGBUILD create mode 100644 pcr/ttf-roboto/ttf-roboto.install (limited to 'pcr/ttf-roboto') 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 PGP-Key: D6777412 - Fingerprint: C972 8B50 9411 BBE1 5CA5 9906 5103 71F3 D677 7412 +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres + +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 +} -- cgit v1.2.3-2-g168b