summaryrefslogtreecommitdiffstats
path: root/main/py-configshell/APKBUILD
blob: a5d9992d8af1978f6031c9fcd5965f8990b05ac0 (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_p7
_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="AGPL3"
depends="python"
depends_dev="python-dev py-simpleparse 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="c14768baf1216f2ce272d7a9e261909c  configshell-fb-1.1.fb7.tar.gz"
sha256sums="ab5576b7c4ff91390aea0b1edb7de5eada209da054022a10e8eab71252e2dc55  configshell-fb-1.1.fb7.tar.gz"
sha512sums="1fa8eed68c3bfa261dcb1ad7d724844bf1845f11fe8fa1587972e2cd6aa91750504e3438cc9b349c382b590bfe54e1ffbc616aa76927e32c4651123f6f756e37  configshell-fb-1.1.fb7.tar.gz"