Skip to content

Commit

Permalink
python-pygments - 2.1.3 - update to latest version
Browse files Browse the repository at this point in the history
python-pygments - 2.1.3 - update to latest version
  • Loading branch information
JPeterMugaas committed May 7, 2016
1 parent 432b364 commit 0dbe37b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions python-pygments/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Maintainer: João Guerra <joca.bt@gmail.com>

_pyname=Pygments
pkgbase="python-pygments"
pkgname=("python2-pygments" "python3-pygments")
pkgver=2.1.1
pkgver=2.1.3
pkgrel=1
pkgdesc="A syntax highlighting engine written in Python"
arch=("i686" "x86_64")
Expand All @@ -11,20 +12,22 @@ license=('BSD')
makedepends=("python2-setuptools" "python3-setuptools")
source=("https://pypi.python.org/packages/source/P/Pygments/Pygments-${pkgver}.tar.gz")
noextract=("Pygments-${pkgver}.tar.gz")
sha256sums=('2df7d9a85b56e54c7c021dc98fc877bd216ead652c10da170779c004fb59c01b')
sha256sums=('88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81')

prepare () {
# workaround for symlink issue
tar -xf Pygments-${pkgver}.tar.gz || true
cp Pygments-${pkgver}/scripts/debug_lexer.py Pygments-${pkgver}/scripts/find_error.py
tar -xf ${_pyname}-${pkgver}.tar.gz || true
cp ${_pyname}-${pkgver}/scripts/debug_lexer.py \
${_pyname}-${pkgver}/scripts/find_error.py

}

package_python2-pygments () {
depends=("python2")
install="python2-pygments.install"

cd "Pygments-${pkgver}"
python2 setup.py install --root="${pkgdir}" -O1
cd "${_pyname}-${pkgver}"
/usr/bin/python2 setup.py install --root="${pkgdir}" -O1
mv "${pkgdir}/usr/bin/pygmentize" "${pkgdir}/usr/bin/pygmentize2"
install -Dm644 external/pygments.bashcomp "${pkgdir}/usr/share/bash-completion/completions/pygmentize2"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
Expand All @@ -33,8 +36,8 @@ package_python2-pygments () {
package_python3-pygments () {
depends=("python3")

cd "Pygments-${pkgver}"
python3 setup.py install --root="${pkgdir}" -O1
cd "${_pyname}-${pkgver}"
/usr/bin/python3 setup.py install --root="${pkgdir}" -O1
install -Dm644 external/pygments.bashcomp "${pkgdir}/usr/share/bash-completion/completions/pygmentize"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

0 comments on commit 0dbe37b

Please sign in to comment.