archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-pycurl / trunk / PKGBUILD
blob2bb1b4b072371c106e0afed1d8ea9bcfca49e30e
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
5 pkgname=python-pycurl
6 pkgver=7.45.1
7 pkgrel=1
8 pkgdesc="A Python 3.x interface to libcurl"
9 arch=('x86_64')
10 url="http://pycurl.sourceforge.net/"
11 license=('LGPL' 'MIT')
12 depends=('python' 'curl')
13 makedepends=('python-setuptools')
14 checkdepends=('python-bottle' 'python-pytest' 'vsftpd' 'python-flaky' 'python-pyflakes')
15 source=("https://github.com/pycurl/pycurl/archive/REL_${pkgver//./_}/$pkgname-$pkgver.tar.gz")
16 sha512sums=('8b54b625d692d1f152a4e4ff29fbb8d66f51b5a657ab08e5493c6d4a9a7a1f58bb8407885d6a061ef64078db416e60d7f9a246c4a0e87f11d411cb706b96000d')
18 prepare() {
19   mv pycurl-REL_${pkgver//./_} pycurl-$pkgver
22 build() {
23   cd pycurl-$pkgver
24   make
25   python setup.py build
28 check() {
29   export PYCURL_VSFTPD_PATH=vsftpd
30   # We don't have HTTP2 enabled
32   cd pycurl-$pkgver
33   PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.10:$PYTHONPATH" make test || warning "Tests failed"
36 package() {
37   cd pycurl-$pkgver
38   python setup.py install -O1 --root="$pkgdir"
39   install -Dm644 COPYING-MIT -t "$pkgdir"/usr/share/licenses/$pkgname/