summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eda50afd5b7a0249ce9571be4f0e94d3ec4d44bd (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
# Maintainer: pumpkincheshire <sollyonzou@gmail.com>

_name=asks
pkgname=python-asks
pkgver=2.4.12
pkgrel=2
pkgdesc="Async requests-like httplib for python."
arch=('any')
url="https://github.com/theelous3/asks"
license=('MIT')
depends=('python-async_generator' 'python-h11' 'python-anyio')
optdepends=('python-trio: test use' 'python-curio: test use' 'python-pytest: test use' 'python-overly: test use')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('38de944eb350e7e4e3a918055fa8ff033da5f7b5ff385c1160a2d6b9d84783b0')

build() {
	cd "$srcdir/$_name-$pkgver"
	python setup.py build
}

package() {
	cd "$srcdir/$_name-$pkgver"
	python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
	install -Dm644 LICENCE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
}