diff --git a/packages/archlinux/PKGBUILD b/packages/archlinux/PKGBUILD index 2e4dab81..6a807bc2 100644 --- a/packages/archlinux/PKGBUILD +++ b/packages/archlinux/PKGBUILD @@ -36,6 +36,11 @@ 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" + install -dm755 "${pkgdir}/usr/share/fonts/TTF/" + install -dm755 "${pkgdir}/etc/fonts/conf.avail" + install -dm755 "${pkgdir}/etc/fonts/conf.d" + + install -m644 "font/PowerlineSymbols.otf" "${pkgdir}/usr/share/fonts/TTF/PowerlineSymbols.otf" + install -m644 "font/10-powerline-symbols.conf" "${pkgdir}/etc/fonts/conf.avail/10-powerline-symbols.conf" + ln -s "../conf.avail/10-powerline-symbols.conf" "${pkgdir}/etc/fonts/conf.d/10-powerline-symbols.conf" } diff --git a/packages/archlinux/powerline.install b/packages/archlinux/powerline.install index 3792f4c5..18a2e2a3 100644 --- a/packages/archlinux/powerline.install +++ b/packages/archlinux/powerline.install @@ -6,12 +6,15 @@ post_install() { 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). +Powerline requires custom glyphs to work properly. A font with these glyphs has +been installed along with a fontconfig file which enables the glyphs for many +common coding fonts. + +If Powerline doesn't work out of the box on your system, please submit an issue +on GitHub: https://github.com/Lokaltog/powerline/issues + +Consult the documentation for detailed installation instructions and +troubleshooting information: http://lokaltog.github.com/powerline/ " }