blob: 7b08ada021453b0c82af56bb20d416c95ee99880 (
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
|
# $Id: PKGBUILD 196757 2013-10-17 23:38:31Z eric $
# Maintainer:
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
pkgbase=pycurl
pkgname=('python2-pycurl')
pkgver=7.19.0.2
pkgrel=1
arch=('i686' 'x86_64' 'mips64el')
url="http://pycurl.sourceforge.net/"
license=('GPL')
makedepends=('python2' 'curl')
source=("http://pycurl.sourceforge.net/download/${pkgbase}-${pkgver}.tar.gz")
md5sums=('518be33976dbc6838e42495ada64b43f')
package_python2-pycurl() {
pkgdesc="A Python 2.x interface to libcurl"
depends=('python2' 'curl')
replaces=('pycurl' 'python-pycurl')
provides=('pycurl' 'python-pycurl')
conflicts=('python-pycurl')
cd ${pkgbase}-${pkgver}
python2 setup.py install --curl-config=/usr/bin/curl-config \
--prefix "${pkgdir}"/usr --optimize=1
sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
$(find "${pkgdir}" -name '*.py')
}
|