aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-libvirt/APKBUILD
blob: d5a55c7c45f6ec68c559b859d69d567d6873d4c8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-libvirt
pkgver=1.2.2
pkgrel=1
pkgdesc="The libvirt virtualization API python binding"
url="http://libvirt.org"
arch="all"
license="LGPLv2+"
depends=""
depends_dev=""
makedepends="$depends_dev python-dev libvirt-dev"
install=""
subpackages=""
source="http://libvirt.org/sources/python/libvirt-python-$pkgver.tar.gz
	0001-generator-Add-virConnectDomainQemuMonitorEventCallba.patch
	musl-gnuc-prereq.patch
	"

_builddir="$srcdir"/libvirt-python-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="cd3b75c0eb64e933f0b648fbdca6e868  libvirt-python-1.2.2.tar.gz
72ac7a1fee6d9c3bc75cc2fac8d01f96  0001-generator-Add-virConnectDomainQemuMonitorEventCallba.patch
51a120926a0c664e972f207215e4a7a0  musl-gnuc-prereq.patch"
sha256sums="94d79d662b6010f6c688b8856b2d95077736d48ffa35feed5a339d7fafbf8c39  libvirt-python-1.2.2.tar.gz
90a398eba083857b9cb8548695b311e4a8b59779281ed00f78a68a3c7da0b565  0001-generator-Add-virConnectDomainQemuMonitorEventCallba.patch
a3be754db64e05679d72587f60e7455a946c87102d591119c991765016a8b458  musl-gnuc-prereq.patch"
sha512sums="28f73dba325a6d84bd84ea25c39e1785c276850d56bf408476912f4d4260a93d37b773dbd4fcedb4b9d5755c81676beb4c0ca28c1e5a5e199c2d74b7d0b0c6e4  libvirt-python-1.2.2.tar.gz
649dd1b9964c575dc3e1874762f8ff9588a6b1b44a240dd587582363efb12568300bf4492c72dbd27b943b290beba9494a8ff4e63dfbb52c3340489a274429c2  0001-generator-Add-virConnectDomainQemuMonitorEventCallba.patch
8aa1d814f8388ebff0736ee138c780323381cd4cf39b4a4faed2e2a1fe5911facc34505a85b0977d8b4240b8ce2f4a6d0414790693c4f45ff7d9592e9d6a3ff8  musl-gnuc-prereq.patch"