mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 10:17:14 +08:00
ttf-chromeos-fonts: add to official repo.
This commit is contained in:
parent
edd3089c25
commit
a5171eb031
19
ttf-chromeos-fonts/PKGBUILD
Executable file
19
ttf-chromeos-fonts/PKGBUILD
Executable 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
|
||||
}
|
||||
|
15
ttf-chromeos-fonts/ttf-chromeos-fonts.install
Executable file
15
ttf-chromeos-fonts/ttf-chromeos-fonts.install
Executable 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user