Install symbol font in Arch Linux package

Refs #60.
This commit is contained in:
Kim Silkebækken 2013-01-18 11:19:38 +01:00
parent 14c4ba45b3
commit 18813c5f06
3 changed files with 27 additions and 1 deletions

View File

@ -1,3 +1,4 @@
*
!.gitignore
!PKGBUILD
!*.install

View File

@ -1,7 +1,7 @@
# Maintainer: Kim Silkebækken <kim.silkebaekken+aur@gmail.com>
pkgname=powerline-git
pkgver=20130102
pkgver=20130118
pkgrel=1
pkgdesc='The ultimate statusline/prompt utility.'
url='https://github.com/Lokaltog/powerline'
@ -9,6 +9,7 @@ license=('CC BY-SA 3.0')
arch=('any')
depends=('python2>=2.7')
makedepends=('git' 'python2-distribute')
install='powerline.install'
source=()
_gitroot="https://github.com/Lokaltog/powerline.git"
@ -34,4 +35,7 @@ build() {
python2 setup.py build || return 1
python2 setup.py install --root=${pkgdir} || return 1
install -d "${pkgdir}/usr/share/fonts/TTF/"
install -m644 "powerline/fontpatcher/PowerlineSymbols.otf" "${pkgdir}/usr/share/fonts/TTF/PowerlineSymbols.otf"
}

View File

@ -0,0 +1,21 @@
post_install() {
echo "Updating font cache..."
fc-cache -f
echo "
IMPORTANT
---------
Powerline requires custom glyphs to work properly. A font with these symbols
has been installed, and Powerline may work out of the box for you. If it
doesn't, please see the font installation instructions at
http://lokaltog.github.com/powerline/overview.html#font-installation for more
details (you can skip the first steps since the font has already been
installed on your system).
"
}
post_remove() {
echo "Updating font cache..."
fc-cache -f
}