aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-requests
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-01 23:23:43 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-10-01 23:27:00 +0200
commit7364456d18ae3db285274fa264ed8a2632851117 (patch)
treeffe747d3fc52229df8b612ad1b18396da51d5b6d /main/py-requests
parent5dcc8532b5e1dd50d7d70c4ae408ffc939eec738 (diff)
downloadaports-7364456d18ae3db285274fa264ed8a2632851117.tar.bz2
aports-7364456d18ae3db285274fa264ed8a2632851117.tar.xz
main/py-requests: improve abuild and fix to not silently fail
Diffstat (limited to 'main/py-requests')
-rw-r--r--main/py-requests/APKBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/main/py-requests/APKBUILD b/main/py-requests/APKBUILD
index 07bad2e5d0..c4386ca311 100644
--- a/main/py-requests/APKBUILD
+++ b/main/py-requests/APKBUILD
@@ -3,22 +3,21 @@
pkgname=py-requests
_pkgname=requests
pkgver=2.11.1
-pkgrel=0
+pkgrel=1
pkgdesc="A HTTP request library for Python"
url="http://www.python-requests.org/"
arch="noarch"
-license="ASL 2.0"
+license="ASL-2.0"
depends=""
makedepends="python2-dev py-setuptools python3-dev"
-subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-
-builddir="$srcdir"/$_pkgname-$pkgver
+builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python2 setup.py build || return 1
- python3 setup.py build || return 1
+ python3 setup.py build || return 1
}
package() {
@@ -26,16 +25,18 @@ package() {
}
_py() {
- local python=$1
- pkgdesc="$pkgdesc - $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
+ local python="$1"
+ pkgdesc="$pkgdesc ${python#python}"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
- _py python2
replaces="$pkgname"
+ _py python2
}
_py3() {