diff options
Diffstat (limited to 'unmaintained/py-xen/APKBUILD')
-rw-r--r-- | unmaintained/py-xen/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/unmaintained/py-xen/APKBUILD b/unmaintained/py-xen/APKBUILD new file mode 100644 index 0000000000..fb58c179fb --- /dev/null +++ b/unmaintained/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.3 +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="75b0689146dfbbe493769f15871bf853 Python-Xen-0.0.3.tar.gz" |