diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-04-03 15:05:36 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-04-04 06:33:54 +0000 |
commit | 6ac03cd169f19c102d0f8d66628f60efae5d6f91 (patch) | |
tree | ebad4e259cd69d118c5714b0cb150f8d7bf43b83 /main | |
parent | f342086f328dacdc48f28f6a146544de4c32c3dd (diff) | |
download | aports-6ac03cd169f19c102d0f8d66628f60efae5d6f91.tar.bz2 aports-6ac03cd169f19c102d0f8d66628f60efae5d6f91.tar.xz |
main/py3-configshell: use python3, upgrade to 1.1.fb25
Modernize APKBUILD
Diffstat (limited to 'main')
-rw-r--r-- | main/py-configshell/APKBUILD | 42 | ||||
-rw-r--r-- | main/py3-configshell/APKBUILD | 31 |
2 files changed, 31 insertions, 42 deletions
diff --git a/main/py-configshell/APKBUILD b/main/py-configshell/APKBUILD deleted file mode 100644 index b9458bada1..0000000000 --- a/main/py-configshell/APKBUILD +++ /dev/null @@ -1,42 +0,0 @@ -# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> -pkgname=py-configshell -_realname=configshell -pkgver=1.1_p19 -_ver=${pkgver/_rc/rc} -_ver=${_ver/_p/.fb} -pkgrel=3 -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="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" 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" |