# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=py-configshell _realname=configshell pkgver=1.1_p19 _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="AGPL3" depends="python2 py-six py-urwid py-parsing" depends_dev="" makedepends="$depends_dev python2-dev py-setuptools" install="" subpackages="" source="$_realname-fb-$_ver.tar.gz::https://github.com/agrover/configshell-fb/archive/v$_ver.tar.gz" _builddir="$srcdir"/$_realname-fb-$_ver 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" python2 setup.py build || return 1 } package() { cd "$_builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 } md5sums="d652ce0885b8b0cda1cf86a17c14e0e0 configshell-fb-1.1.fb19.tar.gz" sha256sums="7aabcd10c407909895634f2b217fba2ef22c5023292edf10353748068cbe315e configshell-fb-1.1.fb19.tar.gz" sha512sums="d59f6bdcc89650b6b6693899110cfde0b3f0a9b7be3b9e64c80824181dd612c1b25a84ff450cf0e6d5b35de52918983c1444e86fdf7627f3cd7fb7b0a33a09aa configshell-fb-1.1.fb19.tar.gz"