-
-
Notifications
You must be signed in to change notification settings - Fork 651
Expand file tree
/
Copy pathPKGBUILD
More file actions
30 lines (23 loc) · 860 Bytes
/
PKGBUILD
File metadata and controls
30 lines (23 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgname=python2-pygments
_pkgname=Pygments
pkgver=2.5.2
pkgrel=3
pkgdesc='A syntax highlighting package written in Python.'
url='https://pypi.org/project/pygments/#files'
arch=('any')
license=('BSD')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('d6715ca26cdb68d4c771bb530b2395805025c14c78d9099b033d3410ea239c41033fb611e43e39cbaa4ac38078a09324d8cfde42269129be0a096dcc13586859')
build() {
cd "$_pkgname-$pkgver"
python2 setup.py build
}
package() {
cd "$_pkgname-$pkgver"
python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
mv "$pkgdir/usr/bin/pygmentize" "$pkgdir/usr/bin/pygmentize2"
}