summaryrefslogblamecommitdiff
path: root/user/py3-pygments/APKBUILD
blob: 388951161798ec912931b20a39a2755f8ebd3adf (plain) (tree)
1
2
3
4
5
6
7
8
9

                                               

                                         

                    

                      
            
        
                                                         






                                     
                                                                                              


                                    




                                              




                                              



                                                               


                                                                                    
                                                                                                                                                                    
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Contributor: Matt Smith <mcs@darkregion.net>
# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer:
pkgname=py3-pygments
_pkgname=Pygments
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=2.5.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/$_p/$_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="d6715ca26cdb68d4c771bb530b2395805025c14c78d9099b033d3410ea239c41033fb611e43e39cbaa4ac38078a09324d8cfde42269129be0a096dcc13586859  Pygments-2.5.2.tar.gz"