mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 07:57:13 +08:00
ttf-opensans imported form ccr as our main font
This commit is contained in:
parent
b6f3d176c4
commit
40a731ec9f
24
ttf-opensans/PKGBUILD
Executable file
24
ttf-opensans/PKGBUILD
Executable 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')
|
15
ttf-opensans/ttf-opensans.install
Normal file
15
ttf-opensans/ttf-opensans.install
Normal 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