Improve font installation in Arch Linux package

This commit is contained in:
Kim Silkebækken 2013-01-18 16:52:03 +01:00
parent 2ace41857f
commit 1637a1312f
2 changed files with 16 additions and 8 deletions

View File

@ -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"
}

View File

@ -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/
"
}