Created
February 26, 2015 15:57
-
-
Save jonhoo/2479ae5f9cbb5e917d57 to your computer and use it in GitHub Desktop.
Updated PKGBUILD for source-code-pro-1.017R
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Maintainer: Manuel Mendez <mmendez534@gmail.com> | |
| # Contributor: Jon Gjengset <jon@tsp.io> | |
| pkgname=source-code-pro-fonts-powerline | |
| pkgver=1.017 | |
| pkgrel=3 | |
| pkgdesc="A set of monospaced fonts (TTF & OTF) designed for coding environments" | |
| arch=('any') | |
| license=('custom:OFL') | |
| url='http://sourceforge.net/projects/sourcecodepro.adobe/' | |
| depends=('fontconfig' | |
| 'python2-powerline-fontpatcher-git' | |
| 'xorg-mkfontdir' | |
| 'xorg-mkfontscale') | |
| install=source-code-pro-fonts.install | |
| source=("https://github.com/adobe-fonts/source-code-pro/archive/${pkgver}R.tar.gz" | |
| "$install") | |
| md5sums=('6f8609cb05afbafc01a5b4d5b7c99cc7' | |
| '714e3cc3255bc4481fffd5ae1ad48d25') | |
| prepare() | |
| { | |
| cd "${srcdir}/source-code-pro-${pkgver}R" | |
| find -type f -name '*for Powerline*' -exec rm {} \+ | |
| } | |
| build() { | |
| cd "${srcdir}/source-code-pro-${pkgver}R" | |
| pushd OTF | |
| for f in *.otf | |
| do | |
| powerline-fontpatcher "$f" | |
| done | |
| popd | |
| pushd TTF | |
| for f in *.ttf | |
| do | |
| powerline-fontpatcher "$f" | |
| done | |
| popd | |
| } | |
| package() { | |
| cd "${srcdir}/source-code-pro-${pkgver}R" | |
| install -d "${pkgdir}/usr/share/fonts/TTF" | |
| install -d "${pkgdir}/usr/share/fonts/OTF" | |
| install -m644 TTF/*Powerline*.ttf "${pkgdir}/usr/share/fonts/TTF/" | |
| install -m644 OTF/*Powerline*.otf "${pkgdir}/usr/share/fonts/OTF/" | |
| install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment