diff --git a/packages/archlinux/.gitignore b/packages/archlinux/.gitignore index e087cfea..4ef5aeeb 100644 --- a/packages/archlinux/.gitignore +++ b/packages/archlinux/.gitignore @@ -1,3 +1,4 @@ * !.gitignore !PKGBUILD +!*.install diff --git a/packages/archlinux/PKGBUILD b/packages/archlinux/PKGBUILD index a550a8da..2e4dab81 100644 --- a/packages/archlinux/PKGBUILD +++ b/packages/archlinux/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Kim Silkebækken 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" } diff --git a/packages/archlinux/powerline.install b/packages/archlinux/powerline.install new file mode 100644 index 00000000..3792f4c5 --- /dev/null +++ b/packages/archlinux/powerline.install @@ -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 +}