summaryrefslogtreecommitdiffstats
path: root/main/py-libvirt
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-12-04 15:43:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-12-04 15:43:58 +0000
commit55f7fe9115a948617e6ea6f13191a3cdb3bca568 (patch)
tree4c850d1a91ba3726cf851b0500a6933e251a6fbf /main/py-libvirt
parentf1870d38f171ceaa7cf24037b397d1f3a91d9cdd (diff)
downloadaports-55f7fe9115a948617e6ea6f13191a3cdb3bca568.tar.bz2
aports-55f7fe9115a948617e6ea6f13191a3cdb3bca568.tar.xz
main/py-libvirt: splitted from libvirt
Diffstat (limited to 'main/py-libvirt')
-rw-r--r--main/py-libvirt/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/main/py-libvirt/APKBUILD b/main/py-libvirt/APKBUILD
new file mode 100644
index 000000000..10e6a0725
--- /dev/null
+++ b/main/py-libvirt/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=py-libvirt
+pkgver=1.2.0
+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"
+
+_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="38158e5740be65f17eef9f99ffa5dadf libvirt-python-1.2.0.tar.gz"
+sha256sums="2fe7e341cb1b35cff130b7a04d0d58f3607094e63cbca689bc16c7b47da0f52b libvirt-python-1.2.0.tar.gz"
+sha512sums="8aa1cd366897fd7657f0cecd189df56551c2a524c1f7d7c609d314c44046b0367d84af617a7591d4d7bb7708dfe66323f2156ed8a0144901bbf563b4f5133d80 libvirt-python-1.2.0.tar.gz"