blob: e07a3c2be7079555df193ec2efe2acdcd106a571 (
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
64
65
66
67
68
|
# Maintainer: Jelle van der Waa <jelle@archlinux.org>
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Nikola Milinković <nikmil@gmail.com>
# Submitter: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
_pkgbase=regex
pkgbase=python-regex
pkgname=('python-regex' 'python2-regex')
pkgname=python-regex
pkgver=2018.02.21
pkgrel=1
pkgdesc="Alternative python regular expression module."
arch=('x86_64')
url="https://bitbucket.org/mrabarnett/mrab-regex"
license=('Python')
makedepends=('python-setuptools' 'python2-setuptools')
options=(!emptydirs)
source=(https://pypi.io/packages/source/r/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz)
sha256sums=('b44624a38d07d3c954c84ad302c29f7930f4bf01443beef5589e9157b14e2a29')
build() {
cd "regex-${pkgver}"
python setup.py build
python2 setup.py build
}
check() {
cd "regex-${pkgver}"
pushd build/lib.linux-${CARCH}-3*/
python test_regex.py
popd
pushd build/lib.linux-${CARCH}-2*/
python2 test_regex.py
popd
}
package_python2-regex() {
depends=('python2')
pkgdesc="Alternative python regular expression module. (python2 version)"
cd "regex-${pkgver}"
python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
install -v -m755 -d "${pkgdir}/usr/share/doc/python2-regex"
install -v -m644 ./docs/Features.html "${pkgdir}/usr/share/doc/python2-regex/"
install -v -m644 ./docs/Features.rst "${pkgdir}/usr/share/doc/python2-regex/"
install -v -m644 ./docs/UnicodeProperties.txt "${pkgdir}/usr/share/doc/python2-regex/"
sed -n '1,/^$/p' regex_2/regex.py | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
package_python-regex() {
depends=('python')
pkgdesc="Alternative python regular expression module. (python3 version)"
cd "regex-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
install -v -m755 -d "${pkgdir}/usr/share/doc/python-regex"
install -v -m644 ./docs/Features.html "${pkgdir}/usr/share/doc/python-regex/"
install -v -m644 ./docs/Features.rst "${pkgdir}/usr/share/doc/python-regex/"
install -v -m644 ./docs/UnicodeProperties.txt "${pkgdir}/usr/share/doc/python-regex/"
sed -n '1,/^$/p' regex_3/regex.py | install -Dm644 /dev/stdin "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|