aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-libvirt/APKBUILD
blob: 2f8cdc0f73d42320baf1f3c5c480345040fa57bd (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py-libvirt
pkgver=1.2.13
pkgrel=0
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
	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="e873c7329e8f1ebdd502ab82ead7a8ee  libvirt-python-1.2.13.tar.gz
51a120926a0c664e972f207215e4a7a0  musl-gnuc-prereq.patch"
sha256sums="fa22a6012a5d47aa728bdcf9f42d9d06e4dd8fa3ea9bc92b10122ea8300e9c39  libvirt-python-1.2.13.tar.gz
a3be754db64e05679d72587f60e7455a946c87102d591119c991765016a8b458  musl-gnuc-prereq.patch"
sha512sums="bdcd74c8551a39f5f88ade133c5ea12f23763f3d15edea01575dda50f84ccbaf1932d63c54ff5d421b156f0386c15713ababe8a764a04bd91a5441a5061ba018  libvirt-python-1.2.13.tar.gz
8aa1d814f8388ebff0736ee138c780323381cd4cf39b4a4faed2e2a1fe5911facc34505a85b0977d8b4240b8ce2f4a6d0414790693c4f45ff7d9592e9d6a3ff8  musl-gnuc-prereq.patch"