Commit 4068e09f authored by Jakub Jirutka's avatar Jakub Jirutka
Browse files

main/py-httplib2: improve abuild

parent ee18c6bf
......@@ -9,31 +9,24 @@ url="https://github.com/jcgregorio/httplib2"
arch="noarch"
license="MIT"
depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
default_prepare || return 1
cd "$builddir"
chmod 644 python2/${_pkgname}.egg-info/*
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
cd "$builddir"
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
cd "$builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
chmod o+r $pkgdir/usr/lib/python2.7/site-packages/httplib2/cacerts.txt
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment