Add ttf-cosmic-sans-neue-git
The original PKGBUILD from the AUR doesn't actually build the latest git revision.
This commit is contained in:
parent
0e652463d7
commit
87aad63088
2 changed files with 38 additions and 0 deletions
23
ttf-cosmic-sans-neue-git/PKGBUILD
Normal file
23
ttf-cosmic-sans-neue-git/PKGBUILD
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Maintainer: Parantapa Bhattacharya <pb at parantapa dot net>
|
||||
pkgname=ttf-cosmic-sans-neue-git
|
||||
pkgver=20131128
|
||||
pkgrel=1
|
||||
pkgdesc="A font family with a great monospaced variant for programmers."
|
||||
arch=('any')
|
||||
url="https://github.com/belluzj/cosmic-sans-neue"
|
||||
license=('SIL OPEN FONT LICENSE Version 1.1')
|
||||
depends=('fontconfig' 'xorg-font-utils')
|
||||
makedepends=('git')
|
||||
install=$pkgname.install
|
||||
source=(git+https://github.com/belluzj/cosmic-sans-neue.git)
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/cosmic-sans-neue"
|
||||
git log -1 --pretty=format:"%cd" --date=short | sed s/-//g
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d "${pkgdir}/usr/share/fonts/TTF"
|
||||
cp -dpr --no-preserve=ownership "${srcdir}/cosmic-sans-neue/"*.ttf "${pkgdir}/usr/share/fonts/TTF"
|
||||
}
|
15
ttf-cosmic-sans-neue-git/ttf-cosmic-sans-neue-git.install
Normal file
15
ttf-cosmic-sans-neue-git/ttf-cosmic-sans-neue-git.install
Normal file
|
@ -0,0 +1,15 @@
|
|||
post_install() {
|
||||
echo -n "Updating font cache... "
|
||||
fc-cache -fs >/dev/null
|
||||
mkfontscale /usr/share/fonts/TTF /usr/share/fonts/Type1
|
||||
mkfontdir /usr/share/fonts/TTF /usr/share/fonts/Type1
|
||||
echo "done"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install
|
||||
}
|
Loading…
Reference in a new issue