aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-configshell/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-06-08 06:57:57 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-06-08 07:00:49 +0000
commit67844c597d4ebe29f66ea5b1deef9484541fee9e (patch)
tree491a9323505f00084c3eeed837a4306f6aa44183 /main/py-configshell/APKBUILD
parent9a538c70a2bf13d3f48db25e226cf19c066e6941 (diff)
downloadaports-67844c597d4ebe29f66ea5b1deef9484541fee9e.tar.bz2
aports-67844c597d4ebe29f66ea5b1deef9484541fee9e.tar.xz
testing/py-configshell: move to main
Diffstat (limited to 'main/py-configshell/APKBUILD')
-rw-r--r--main/py-configshell/APKBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/main/py-configshell/APKBUILD b/main/py-configshell/APKBUILD
new file mode 100644
index 0000000000..299357e2ee
--- /dev/null
+++ b/main/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"