diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a84d07546c6c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Devin Christensen <quixoten at gmail dot com> +pkgname=ttf-hack-powerline-git +pkgver=r98.6ac4c01 +pkgrel=1 +pkgdesc="Hack for Powerline" +arch=('any') +url=('https://github.com/powerline/fonts') +license=('custom:SIL OFL, v1.1 + Bitstream License') +depends=(fontconfig xorg-font-utils ) +makedepends=('git') +conflicts=(powerline-fonts powerline-fonts-git) +install=$pkgname.install +source=('git://github.com/powerline/fonts.git') +md5sums=('SKIP') + +pkgver() { + cd fonts + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd $srcdir/fonts/Hack + find . -iname '*.ttf' -execdir install -Dm644 {} $pkgdir/usr/share/fonts/TTF/{} \; + install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE +} |