diff options
author | Tom Willemse | 2013-12-01 12:43:25 +0100 |
---|---|---|
committer | Tom Willemse | 2013-12-01 12:43:25 +0100 |
commit | 87aad630884e79395b3645930d9873e0b125e1c3 (patch) | |
tree | 5036422f5a4ecfd1869434f2f0bcc9a56fd427a5 /ttf-cosmic-sans-neue-git | |
parent | 0e652463d7506780984bfff8c6dfb21887aa2dbe (diff) | |
download | pkgbuilds-87aad630884e79395b3645930d9873e0b125e1c3.tar.gz pkgbuilds-87aad630884e79395b3645930d9873e0b125e1c3.zip |
Add ttf-cosmic-sans-neue-git
The original PKGBUILD from the AUR doesn't actually build the latest git
revision.
Diffstat (limited to 'ttf-cosmic-sans-neue-git')
-rw-r--r-- | ttf-cosmic-sans-neue-git/PKGBUILD | 23 | ||||
-rw-r--r-- | ttf-cosmic-sans-neue-git/ttf-cosmic-sans-neue-git.install | 15 |
2 files changed, 38 insertions, 0 deletions
diff --git a/ttf-cosmic-sans-neue-git/PKGBUILD b/ttf-cosmic-sans-neue-git/PKGBUILD new file mode 100644 index 0000000..d6cfcdb --- /dev/null +++ b/ttf-cosmic-sans-neue-git/PKGBUILD @@ -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" +} diff --git a/ttf-cosmic-sans-neue-git/ttf-cosmic-sans-neue-git.install b/ttf-cosmic-sans-neue-git/ttf-cosmic-sans-neue-git.install new file mode 100644 index 0000000..1aae7e7 --- /dev/null +++ b/ttf-cosmic-sans-neue-git/ttf-cosmic-sans-neue-git.install @@ -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 +} |