Add ttf-raleway

This commit is contained in:
Manuel 2012-06-02 14:40:33 +00:00
parent 5ffeaf066e
commit 4617d9f4f0
2 changed files with 39 additions and 0 deletions

18
ttf-raleway/PKGBUILD Normal file
View File

@ -0,0 +1,18 @@
# Platform packages for Chakra
pkgname=ttf-raleway
pkgver=1
pkgrel=1
pkgdesc="A sans-serif typeface"
arch=('any')
url="http://theleagueofmoveabletype.com/raleway/"
license=('OFL')
depends=('fontconfig' 'xorg-font-utils')
install=ttf.install
source=('http://theleagueofmoveabletype.com/raleway/download')
md5sums=('ff280d51659a149751a3fe194d2944b4')
package() {
install -d ${pkgdir}/usr/share/fonts/TTF/
install -m644 ${srcdir}/theleagueof-raleway-40afd9d/*.ttf ${pkgdir}/usr/share/fonts/TTF/
}

21
ttf-raleway/ttf.install Normal file
View File

@ -0,0 +1,21 @@
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
}
op=$1
shift
$op $*