diff options
Diffstat (limited to 'testing/py-appliancekit-ng/APKBUILD')
-rw-r--r-- | testing/py-appliancekit-ng/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/py-appliancekit-ng/APKBUILD b/testing/py-appliancekit-ng/APKBUILD new file mode 100644 index 0000000000..2f78b5a141 --- /dev/null +++ b/testing/py-appliancekit-ng/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=py-appliancekit-ng +pkgver=0.1 +pkgrel=0 +pkgdesc="abstract appliance image builder" +url="http://bitbucket.org/tortoiselabs/appliancekit-ng" +arch="noarch" +license="ISC" +depends="python py-jinja2" +depends_dev="" +makedepends="python-dev" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/A/ApplianceKit-NG/ApplianceKit-NG-$pkgver.tar.gz" + +_builddir="$srcdir"/ApplianceKit-NG-$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="7ec0bcb20c06baf3b98db39072eb6f15 ApplianceKit-NG-0.1.tar.gz" |