aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-configshell/APKBUILD
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2019-04-03 15:05:36 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-04-04 06:33:54 +0000
commit6ac03cd169f19c102d0f8d66628f60efae5d6f91 (patch)
treeebad4e259cd69d118c5714b0cb150f8d7bf43b83 /main/py3-configshell/APKBUILD
parentf342086f328dacdc48f28f6a146544de4c32c3dd (diff)
downloadaports-6ac03cd169f19c102d0f8d66628f60efae5d6f91.tar.gz
aports-6ac03cd169f19c102d0f8d66628f60efae5d6f91.tar.bz2
aports-6ac03cd169f19c102d0f8d66628f60efae5d6f91.tar.xz
main/py3-configshell: use python3, upgrade to 1.1.fb25
Modernize APKBUILD
Diffstat (limited to 'main/py3-configshell/APKBUILD')
-rw-r--r--main/py3-configshell/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/main/py3-configshell/APKBUILD b/main/py3-configshell/APKBUILD
new file mode 100644
index 0000000000..949889ec17
--- /dev/null
+++ b/main/py3-configshell/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
+pkgname=py3-configshell
+_pkgname=configshell
+pkgver=1.1_p25
+_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="Apache-2.0"
+depends="python3 py3-six py3-urwid py3-parsing"
+depends_dev=""
+makedepends="$depends_dev python3-dev"
+install=""
+subpackages=""
+options="!check" # no test suite
+source="$_pkgname-fb-$_ver.tar.gz::https://github.com/agrover/configshell-fb/archive/v$_ver.tar.gz"
+builddir="$srcdir"/$_pkgname-fb-$_ver
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="7f0af5014600d148326b4692a84fcc388d3ea175a79566a5e3b1ede89d9dbc90be5f4b1481e69dd5654e88578b3732441a822e4d89cd0504d0ad3221d3a2f027 configshell-fb-1.1.fb25.tar.gz"