aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-libvirt
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-01 22:48:42 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-10-01 23:14:16 +0200
commit452dcc9276bc0258072bade7435e5c40c9a1471c (patch)
treec6480f26887db2c9a82379006a54038f9d0116a3 /main/py-libvirt
parent1b784e73a9e479f7fe7b0603e3cb9cbd6c983ba4 (diff)
downloadaports-452dcc9276bc0258072bade7435e5c40c9a1471c.tar.bz2
aports-452dcc9276bc0258072bade7435e5c40c9a1471c.tar.xz
main/py-libvirt: improve abuild and fix to not silently fail
Diffstat (limited to 'main/py-libvirt')
-rw-r--r--main/py-libvirt/APKBUILD16
1 files changed, 7 insertions, 9 deletions
diff --git a/main/py-libvirt/APKBUILD b/main/py-libvirt/APKBUILD
index 7cc238a8b1..432a5057ee 100644
--- a/main/py-libvirt/APKBUILD
+++ b/main/py-libvirt/APKBUILD
@@ -9,37 +9,35 @@ arch="noarch"
license="LGPLv2+"
depends=""
makedepends="python2-dev python3-dev libvirt-dev"
-subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
source="http://libvirt.org/sources/python/$_pkgname-$pkgver.tar.gz
musl-gnuc-prereq.patch
"
-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() {
mkdir -p "$pkgdir"
}
-
_py() {
- local python=$1
- pkgdesc="$pkgdesc - $python"
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
arch="all"
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() {