blob: 0f7a06fce4a6087da6383e2119ab9ebc50827212 (
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
|
# Maintainer: Stick <stick@stma.is>
# Contributer: Sherlock Holo <Sherlockya@gmail.com>
_pkg=locust
pkgname="python-$_pkg-git"
pkgver=0.14.5.r83.g34cb6d1
pkgrel=1
pkgdesc="Scalable user load testing tool written in Python"
arch=('any')
url="https://github.com/locustio/$_pkg"
license=('MIT')
depends=('python-flask'
'python-gevent-git'
'python-geventhttpclient-wheels'
'python-msgpack'
'python-pyzmq'
'python-requests'
'python-six')
makedepends=('git'
'python-setuptools')
provides=("python-$_pkg")
conflicts=("python-$_pkg")
source=("$pkgname::git+$url")
md5sums=('SKIP')
pkgver() {
cd "$pkgname" || exit
local _ver
_ver="$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
printf '%s\n' "${_ver#v}"
}
build() {
cd "$pkgname" || exit
sed -i 's/msgpack-python/msgpack/' setup.py
sed -i 's/ "\([[:alpha:]-]*\).=.*"/ "\1"/' setup.py
python setup.py build
}
package() {
cd "$pkgname" || exit
python setup.py install --skip-build --root="$pkgdir"/ --optimize=1
}
|