aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-configshell/APKBUILD
blob: 0969f037bd8da5b0723fb9465525d67aed1e1351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py-configshell
_realname=configshell
pkgver=1.1_p17
_ver=${pkgver/_rc/rc}
_ver=${_ver/_p/.fb}
pkgrel=1
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="python"
depends_dev="python-dev py-simpleparse py-setuptools py-urwid"
makedepends="$depends_dev"
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"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="dbb36d71c1905c713f34a5c19cb0b3af  configshell-fb-1.1.fb17.tar.gz"
sha256sums="a474152c799b65a1cf16f1fbf395ab68b5d49b7c246e6dc97e8c309e3e76708d  configshell-fb-1.1.fb17.tar.gz"
sha512sums="6583f58589fd59be0637a8448e55ed6926245fb1ba9671bdc023ef22d5e24ad2b2e611b1ddd2cdfaba0bd11d8a8fa90c9110bc58259359bc28c93c4d7454eeb0  configshell-fb-1.1.fb17.tar.gz"