# Maintainer: Francesco Colista pkgname=py-libvirt _pkgname=libvirt-python pkgver=2.5.0 pkgrel=0 pkgdesc="The libvirt virtualization API python binding" url="http://libvirt.org" arch="all" 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 (for $python)" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { replaces="$pkgname" _py python2 } _py3() { _py python3 } md5sums="6a064196181adcb7769e42c312a65610 libvirt-python-2.5.0.tar.gz 51a120926a0c664e972f207215e4a7a0 musl-gnuc-prereq.patch" sha256sums="f4fd787ad26b4cd4b32afa65b6248c344ef48edffeb42c892c7adb4866f656d1 libvirt-python-2.5.0.tar.gz a3be754db64e05679d72587f60e7455a946c87102d591119c991765016a8b458 musl-gnuc-prereq.patch" sha512sums="2ff94ff12c20d9d0e5be8b571bc33fb1641e9940c6b49cdee37244c941674b12e1c980f9e0c73f4db52c91579ab19f92cea0c2e79a97abc67ee3309028661bb6 libvirt-python-2.5.0.tar.gz 8aa1d814f8388ebff0736ee138c780323381cd4cf39b4a4faed2e2a1fe5911facc34505a85b0977d8b4240b8ce2f4a6d0414790693c4f45ff7d9592e9d6a3ff8 musl-gnuc-prereq.patch"