desktop/python-httplib2/PKGBUILD
2016-04-10 09:00:11 +01:00

35 lines
948 B
Bash

pkgbase=python-httplib2
pkgname=('python2-httplib2' 'python3-httplib2')
_pkgname=httplib2
pkgver=0.9.2
pkgrel=2
pkgdesc="A comprehensive HTTP client library"
arch=('x86_64')
url="https://github.com/jcgregorio/httplib2"
license=('MIT')
makedepends=('python2-setuptools' 'python3-setuptools' 'python3' 'python2')
source=("https://github.com/jcgregorio/$_pkgname/archive/$pkgver.tar.gz")
md5sums=('eb39d90dc64bd12a94184d76bddc65a3')
prepare() {
# Prepare one build directory for each package
cp -a "${pkgbase/python-}" "${pkgname[0]}"
cp -a "${pkgbase/python-}" "${pkgname[1]}"
}
package_python3-httplib2() {
depends=('python3')
cd "$pkgname"
python3 setup.py install -O1 --root="$pkgdir"
chmod 644 $pkgdir/usr/lib/python3.5/site-packages/httplib2/*
}
package_python2-httplib2() {
depends=('python2')
cd "$pkgname"
python2 setup.py install -O1 --root="$pkgdir"
chmod 644 $pkgdir/usr/lib/python2.7/site-packages/httplib2/*
}