aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-02-05 23:05:28 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-02-05 23:05:28 +0100
commit4068e09faa4238daa12a173e77da248e72c1feb0 (patch)
tree8527256d00cd697ae97a9c14281cffea6d58436c
parentee18c6bf8f1a6b39cb3ea91cbafe46d9752bca73 (diff)
downloadaports-4068e09faa4238daa12a173e77da248e72c1feb0.tar.bz2
aports-4068e09faa4238daa12a173e77da248e72c1feb0.tar.xz
main/py-httplib2: improve abuild
-rw-r--r--main/py-httplib2/APKBUILD19
1 files changed, 6 insertions, 13 deletions
diff --git a/main/py-httplib2/APKBUILD b/main/py-httplib2/APKBUILD
index 8edc43e6e6..2f5c78607c 100644
--- a/main/py-httplib2/APKBUILD
+++ b/main/py-httplib2/APKBUILD
@@ -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
}