ttf-opensans imported form ccr as our main font

This commit is contained in:
AlmAck 2014-04-22 22:52:32 +02:00
parent b6f3d176c4
commit 40a731ec9f
2 changed files with 39 additions and 0 deletions

24
ttf-opensans/PKGBUILD Executable file
View File

@ -0,0 +1,24 @@
# Maintainer: AlmAck <almack@chakraos.org>
# Contributor: Vellerofonte <vellelinux@gmail.com> <www.chakragalaxy.blogspot.it>
pkgname=ttf-opensans
pkgver=20140120
pkgrel=2
pkgdesc="Open Sans is a humanist sans serif typeface designed by Steve Matteson, Type Director of Ascender Corp."
arch=('any')
license=('Apache')
url="http://en.wikipedia.org/wiki/Open_Sans"
screenshot="https://db.tt/xgJB0BOl"
depends=('fontconfig' 'xorg-fonts-encodings' 'xorg-font-utils')
install=$pkgname.install
source=("https://hexchain.org/pub/archlinux/ttf-opensans/opensans.tar.gz")
package()
{
# Install fonts
cd "$srcdir"
install -d "$pkgdir/usr/share/fonts/TTF/"
install -m644 *.ttf "$pkgdir/usr/share/fonts/TTF/"
}
md5sums=('82a1828670d0cd79148a19fbdac9d85f')

View File

@ -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
}