mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
29 lines
912 B
Bash
29 lines
912 B
Bash
pkgbase=python-httplib2
|
|
pkgname=('python2-httplib2' 'python3-httplib2')
|
|
_pkgname=httplib2
|
|
pkgver=0.9.2
|
|
pkgrel=1
|
|
pkgdesc="A comprehensive HTTP client library"
|
|
arch=('x86_64')
|
|
url="https://github.com/jcgregorio/httplib2"
|
|
license=('MIT')
|
|
makedepends=('python2-setuptools' 'python3-setuptools' 'python3')
|
|
source=("https://github.com/jcgregorio/$_pkgname/archive/$pkgver.tar.gz")
|
|
md5sums=('eb39d90dc64bd12a94184d76bddc65a3')
|
|
|
|
package_python2-httplib2() {
|
|
pkgdesc+=(' - Python2 version')
|
|
depends=('python2')
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
python2 setup.py install --prefix=/usr -O2 --root="$pkgdir"
|
|
chmod 644 $pkgdir/usr/lib/python2.7/site-packages/httplib2/*
|
|
}
|
|
|
|
package_python3-httplib2() {
|
|
pkgdesc+=(' - Python3 version')
|
|
depends=('python3')
|
|
cd "$srcdir/$_pkgname-$pkgver"
|
|
python3 setup.py install --prefix=/usr -O2 --root="$pkgdir"
|
|
chmod 644 $pkgdir/usr/lib/python3.5/site-packages/httplib2/*
|
|
}
|