summaryrefslogtreecommitdiffstats
path: root/testing/py-configshell/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-03-20 12:26:52 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-03-20 12:26:52 +0000
commit7d8df3859347c83a347c3c771a3bd438e17a3d44 (patch)
tree7750a9299feb7e8dafdba79f5755160933fc554f /testing/py-configshell/APKBUILD
parentb06fd02ab6d73b7167cdafbb3d2623afacdb1303 (diff)
parent01a790374524c25b6730fd48ae70bb6c31a65361 (diff)
downloadaports-7d8df3859347c83a347c3c771a3bd438e17a3d44.tar.bz2
aports-7d8df3859347c83a347c3c771a3bd438e17a3d44.tar.xz
Merge git://dev.alpinelinux.org/aports
Diffstat (limited to 'testing/py-configshell/APKBUILD')
-rw-r--r--testing/py-configshell/APKBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/py-configshell/APKBUILD b/testing/py-configshell/APKBUILD
new file mode 100644
index 000000000..299357e2e
--- /dev/null
+++ b/testing/py-configshell/APKBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=py-configshell
+_realname=configshell
+pkgver=1.1_p4
+_ver=${pkgver/_rc/rc}
+_ver=${_ver/_p/.fb}
+pkgrel=2
+pkgdesc="Python library that provides a framework for building simple but nice CLI-based applications"
+url="https://github.com/agrover/configshell-fb"
+arch="noarch"
+license="AGPLv3"
+depends="python"
+depends_dev="python-dev py-simpleparse py-urwid"
+makedepends="$depends_dev"
+install=""
+subpackages=
+source="http://dev.alpinelinux.org/archive/configshell/$_realname-$_ver.tar.gz"
+
+_giturl="https://github.com/agrover/configshell-fb"
+_gittag=v$_ver
+
+_builddir="$srcdir"/$_realname
+
+snapshot() {
+ mkdir -p "$srcdir"
+ cd "${SRCDEST:-$srcdir}"
+ if ! [ -d $_realname-fb.git ]; then
+ git clone --bare $_giturl || return 1
+ cd $_realname-fb.git
+ else
+ cd $_realname-fb.git
+ git fetch || return 1
+ fi
+
+ git archive --prefix=$_realname/ -o "$SRCDEST"/$_realname-$_ver.tar.gz $_gittag
+ scp "$SRCDEST"/$_realname-$_ver.tar.gz dev.alpinelinux.org:/archive/$_realname/
+}
+
+
+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
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --skip-build --root="$pkgdir"
+}
+
+md5sums="69abc1134f16a14d481518a5378cf1b1 configshell-1.1.fb4.tar.gz"