aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-flask-components
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-08 16:12:49 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-08 16:36:55 -0300
commit81b47045f62e905c2753212295d655b4b23c5507 (patch)
tree9c1452cc40c448d467d23144a22dd19732204460 /testing/py3-flask-components
parent6b79064f5a863ce1aabdbd590fd2499df4cb545d (diff)
downloadaports-81b47045f62e905c2753212295d655b4b23c5507.tar.bz2
aports-81b47045f62e905c2753212295d655b4b23c5507.tar.xz
testing/py3-flask-components: drop py2
Diffstat (limited to 'testing/py3-flask-components')
-rw-r--r--testing/py3-flask-components/APKBUILD30
1 files changed, 9 insertions, 21 deletions
diff --git a/testing/py3-flask-components/APKBUILD b/testing/py3-flask-components/APKBUILD
index e7aa5ddd47..311db9a1b4 100644
--- a/testing/py3-flask-components/APKBUILD
+++ b/testing/py3-flask-components/APKBUILD
@@ -1,39 +1,27 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-flask-components
+pkgname=py3-flask-components
_pkgname=Flask-Components
pkgver=0.1.1
-pkgrel=0
+pkgrel=1
pkgdesc="Flask files discovery extension"
url="https://pypi.python.org/pypi/Flask-Components"
arch="noarch"
license="MIT"
-depends="python2 py-flask"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
+depends="python3 py3-flask"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
-_builddir="$srcdir"/$_pkgname-$pkgver
-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
-}
+replaces="py-flask-components" # Backwards compatibility
+provides="py-flask-components=$pkgver-r$pkgrel" # Backwards compatibility
build() {
- cd "$_builddir"
- python2 setup.py build || return 1
+ python3 setup.py build
}
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
md5sums="0154bb7697bbe2a03f820fc4bf1a7450 Flask-Components-0.1.1.tar.gz"