ttf-chromeos-fonts: add to official repo.

This commit is contained in:
Jeff Huang 2015-07-07 09:52:08 +00:00
parent edd3089c25
commit a5171eb031
2 changed files with 34 additions and 0 deletions

19
ttf-chromeos-fonts/PKGBUILD Executable file
View File

@ -0,0 +1,19 @@
pkgname=ttf-chromeos-fonts
_pkgname=croscorefonts-1.23.0
pkgver=1.23.0
pkgrel=3
depends=('fontconfig' 'xorg-font-utils')
conflicts=('ttf-google-webfonts')
pkgdesc="Chrome OS true type fonts: Arimo, Tinos and Cousine"
arch=('any')
license=('apache')
source=(http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/croscorefonts-${pkgver}.tar.gz)
url="http://code.google.com/p/chromium-os/issues/detail?id=5287"
install=$pkgname.install
sha256sums=('b469b5457b093a9d8878ef6ff6868f54e258441b88983b1866f64c8995584b4c')
package() {
mkdir -p ${pkgdir}/usr/share/fonts/TTF
install -m644 ${srcdir}/${_pkgname}/*.ttf ${pkgdir}/usr/share/fonts/TTF
}

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
}