blob: e297ef93e204044afb077efbb562b64b82459f95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-libvirt
_pkgname=libvirt-python
pkgver=2.1.0
pkgrel=0
pkgdesc="The libvirt virtualization API python binding"
url="http://libvirt.org"
arch="noarch"
license="LGPLv2+"
depends=""
makedepends="python2-dev python3-dev libvirt-dev"
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
build() {
cd "$builddir"
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python=$1
pkgdesc="$pkgdesc - $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"
}
_py3() {
_py python3
}
md5sums="7f595fed5b9da18b07fd73beafd82ed2 libvirt-python-2.1.0.tar.gz
51a120926a0c664e972f207215e4a7a0 musl-gnuc-prereq.patch"
sha256sums="74887fa1be60db2701e726da7e01e3bf18ecd3b8d1cfdf2f1f7480e1a1edbacb libvirt-python-2.1.0.tar.gz
a3be754db64e05679d72587f60e7455a946c87102d591119c991765016a8b458 musl-gnuc-prereq.patch"
sha512sums="8a031b7572c11f57a16292980188e4da830d1293aa1aab3fa35f9c18746e5628086643d8c6d6450d668d194dd3c792e0a5f61605f96dc11fa430c846e459529a libvirt-python-2.1.0.tar.gz
8aa1d814f8388ebff0736ee138c780323381cd4cf39b4a4faed2e2a1fe5911facc34505a85b0977d8b4240b8ce2f4a6d0414790693c4f45ff7d9592e9d6a3ff8 musl-gnuc-prereq.patch"
|