summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b66537ba706c0184f47613113d467ef68c65f029 (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
# Maintainer: Stick <stick@stma.is>

_pkg=python-geventhttpclient-wheels
pkgname="$_pkg-git"
pkgver=1.3.1dev2.r0.g4d83606
pkgrel=2
pkgdesc="A high performance, concurrent http client library for python with gevent"
arch=('x86_64')
url='https://github.com/locustio/geventhttpclient'
license=('MIT')
depends=('python-certifi'
	'python-gevent-git')
makedepends=('git'
	'python-setuptools')
provides=("$_pkg")
conflicts=("$_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
	python setup.py build
}

package() {
	cd "$pkgname" || exit
	python setup.py install --skip-build --root="$pkgdir"/ --optimize=1
}