-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
69 lines (57 loc) · 1.52 KB
/
PKGBUILD
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
69
# Maintainer: Luchesar V. ILIEV <[email protected]>
pkgbase='python-pysolr'
pkgname=(
'python-pysolr'
'python2-pysolr'
)
pkgver=3.8.1
pkgrel=1
pkgdesc='Lightweight Python client for Apache Solr'
arch=('any')
url='https://github.com/django-haystack/pysolr'
license=('Apache')
makedepends=(
'python'
'python-requests'
'python-setuptools'
'python2'
'python2-requests'
'python2-setuptools'
)
_name='pysolr'
_pypi='files.pythonhosted.org/packages/source'
source=(
"https://${_pypi}/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
)
sha512sums=(
'34489f32cdcbcb7e8109d6d94339fcb200b1367a188a0b9fedf587a77cd64412570b3a796a4da4e0abe6fa3e443a401c4dc0e4946bdc437dd810fee7eabd54a4'
)
build() {
cd "${srcdir}/${_name}-${pkgver}"
python setup.py build
}
package_python-pysolr() {
depends=(
'python'
'python-requests'
)
optdepends=(
'python-kazoo: for SolrCloud mode'
'python-simplejson: use simplejson instead of the stdlib implementation'
)
cd "${srcdir}/${_name}-${pkgver}"
python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}
package_python2-pysolr() {
depends=(
'python2'
'python2-requests'
)
optdepends=(
'python2-kazoo: for SolrCloud mode'
'python2-simplejson: use simplejson instead of the stdlib implementation'
)
cd "${srcdir}/${_name}-${pkgver}"
python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}
# vim:set ts=4 sts=4 sw=4 tw=100 et ft=sh: