blob: 9f49fa047024330540e2179715854668af012f4e (
plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# SPDX-License-Identifier: AGPL-3.0
#
# Maintainer: Truocolo <truocolo@aol.com>
# Maintainer: Pellegrino Prevete (tallero) <pellegrinoprevete@gmail.com>
# Contributor: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Timm Preetz <timm@preetz.us>
_py="python2"
_pkg="pygments"
_name="Pygments"
pkgname="${_py}-${_pkg}"
pkgver=2.5.2
pkgrel=2
pkgdesc="Python syntax highlighter"
arch=(
'any'
)
url="https://${_pkg}.org/"
license=(
'BSD'
)
makedepends=(
"${_py}-setuptools"
)
provides=(
"pygmentize2"
)
_pypi="https://pypi.org/packages/source"
source=(
"${_pypi}/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
)
sha256sums=(
'98c8aa5a9f778fcd1026a17361ddaf7330d1b7c62ae97c3bb0ae73e0b9b6b0fe'
)
package() {
cd \
"${srcdir}/${_name}-${pkgver}"
"${_py}" \
setup.py \
install \
--root="${pkgdir}" \
-O1
install \
-Dm644 \
LICENSE \
-t \
"${pkgdir}/usr/share/licenses/${pkgname}"
# pygmentize is included in python-pygments
find \
"${pkgdir}" | \
grep \
"bin"
cd \
"${pkgdir}/usr/bin"
mv \
"pygmentize" \
"pygmentize2"
}
# vim: ft=sh syn=sh et
|