Skip to content
Snippets Groups Projects
Commit 4068e09f authored by Jakub Jirutka's avatar Jakub Jirutka :flag_ua:
Browse files

main/py-httplib2: improve abuild

parent ee18c6bf
No related branches found
No related tags found
No related merge requests found
...@@ -9,31 +9,24 @@ url="https://github.com/jcgregorio/httplib2" ...@@ -9,31 +9,24 @@ url="https://github.com/jcgregorio/httplib2"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="python2" depends="python2"
depends_dev=""
makedepends="python2-dev py-setuptools" makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() { prepare() {
local i default_prepare || return 1
cd "$_builddir"
cd "$builddir"
chmod 644 python2/${_pkgname}.egg-info/* 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() { build() {
cd "$_builddir" cd "$builddir"
python2 setup.py build || return 1 python2 setup.py build || return 1
} }
package() { package() {
cd "$_builddir" cd "$builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
chmod o+r $pkgdir/usr/lib/python2.7/site-packages/httplib2/cacerts.txt chmod o+r $pkgdir/usr/lib/python2.7/site-packages/httplib2/cacerts.txt
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment