mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 14:57:14 +08:00
Add ttf-raleway
This commit is contained in:
parent
5ffeaf066e
commit
4617d9f4f0
18
ttf-raleway/PKGBUILD
Normal file
18
ttf-raleway/PKGBUILD
Normal 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
21
ttf-raleway/ttf.install
Normal 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 $*
|
||||
|
Loading…
Reference in New Issue
Block a user