diff options
author | Devin Christensen | 2015-12-04 19:13:39 -0700 |
---|---|---|
committer | Devin Christensen | 2015-12-04 19:13:39 -0700 |
commit | 257231d0410eb5fe0c587c0d169480713439d250 (patch) | |
tree | 1383a7ebcd4e4f226dc4b911db66616abb2c9831 | |
download | aur-257231d0410eb5fe0c587c0d169480713439d250.tar.gz |
Add otf-fura-mono-powerline-git to AUR
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 25 | ||||
-rw-r--r-- | otf-fura-mono-powerline-git.install | 15 |
4 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..49575b2c855c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = otf-fura-mono-powerline-git + pkgdesc = FuraMono for Powerline + pkgver = r98.6ac4c01 + pkgrel = 1 + url = https://github.com/powerline/fonts + install = otf-fura-mono-powerline-git.install + arch = any + license = custom:Apache License, Version 2.0 + makedepends = git + depends = fontconfig + depends = xorg-font-utils + conflicts = powerline-fonts + conflicts = powerline-fonts-git + source = git://github.com/powerline/fonts.git + md5sums = SKIP + +pkgname = otf-fura-mono-powerline-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ea0e9397ef42 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/* +!/.SRCINFO +!/.gitignore +!/PKGBUILD +!/otf-fura-mono-powerline-git.install diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2c99ad7c7ca5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Devin Christensen <quixoten at gmail dot com> +pkgname=otf-fura-mono-powerline-git +pkgver=r98.6ac4c01 +pkgrel=1 +pkgdesc="FuraMono for Powerline" +arch=('any') +url=('https://github.com/powerline/fonts') +license=('custom:SIL Open Font License, Version 1.1') +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/FiraMono + find . -iname '*.otf' -execdir install -Dm644 {} $pkgdir/usr/share/fonts/OTF/{} \; + install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE +} diff --git a/otf-fura-mono-powerline-git.install b/otf-fura-mono-powerline-git.install new file mode 100644 index 000000000000..f8ecdd439d8a --- /dev/null +++ b/otf-fura-mono-powerline-git.install @@ -0,0 +1,15 @@ +post_install() { + echo -n "Updating font cache... " + mkfontscale /usr/share/fonts/OTF > /dev/null 2>&1 + mkfontdir /usr/share/fonts/OTF > /dev/null 2>&1 + fc-cache -s >/dev/null + echo "done" +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} |