diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-02-16 08:59:27 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-02-16 08:59:27 +0000 |
commit | 5c25f0495f84c35c9920d6f5cf2852dae3cee9d5 (patch) | |
tree | 9bec0439680a0139814d2c7430521732e956e651 /testing/py-configshell | |
parent | e7c245f3ec90b251661903e6a8bff6f5bbfd2632 (diff) | |
download | aports-5c25f0495f84c35c9920d6f5cf2852dae3cee9d5.tar.bz2 aports-5c25f0495f84c35c9920d6f5cf2852dae3cee9d5.tar.xz |
testing/py-configshell: new aport
Python library that provides a framework for building simple but nice CLI-based applications
Diffstat (limited to 'testing/py-configshell')
-rw-r--r-- | testing/py-configshell/APKBUILD | 60 |
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..68f6e1b6e --- /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=0 +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/targetcli/$_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="3871daaf48df182d376c8cbb1d2dfff0 configshell-1.1.fb4.tar.gz" |