aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-xen/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py-xen/APKBUILD')
-rw-r--r--testing/py-xen/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/py-xen/APKBUILD b/testing/py-xen/APKBUILD
new file mode 100644
index 0000000000..be93e8c78a
--- /dev/null
+++ b/testing/py-xen/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=py-xen
+pkgver=0.0.2
+pkgrel=0
+pkgdesc="Python binding for Xen management"
+url="https://bitbucket.org/tortoiselabs/python-xen"
+arch="noarch"
+license="ISC"
+depends="python xen-libs"
+depends_dev=""
+makedepends="python-dev"
+install=""
+subpackages=""
+source="http://pypi.python.org/packages/source/P/Python-Xen/Python-Xen-$pkgver.tar.gz"
+
+_builddir="$srcdir"/Python-Xen-$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="dff1e84fb256b698c1a6bd8446ab152d Python-Xen-0.0.2.tar.gz"