blob: 81088c5d6ed0eef7519b409283f976515521815b (
plain) (
tree)
|
|
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Contributor: Matt Smith <mcs@darkregion.net>
# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer:
pkgname=py3-pygments
_pkgname=Pygments
pkgver=2.4.2
pkgrel=0
pkgdesc="A syntax highlighting package written in Python"
url="http://pygments.org/"
arch="noarch"
options="!check" # needs nose, flake8
license="BSD-2-Clause"
depends="python3"
makedepends="python3-dev"
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
python3 setup.py build
}
# Reactivate once nose and flake8 are packaged
check() {
sed -i -e 's:python:python3:' Makefile
make test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
doc() {
install -m 644 -D doc/pygmentize.1 "$pkgdir"/usr/share/man/man1/pygmentize.1
}
sha512sums="c8f378700e99d9e5701ac7e27363921dbabab50a910686aafda1e016c813e99915fcfeed8298323b9b681b3d81f4265ab9a5bb75b8cdff0668c9eff745337b66 Pygments-2.4.2.tar.gz"
|