aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-flask-dbconfig/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-08 15:34:05 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-08 15:44:58 -0300
commit98717328ad9a313876ed04fbcaa946fb34b6b00d (patch)
tree5c5740b5a032a76daab57103739e65a6bd06c9ef /testing/py3-flask-dbconfig/APKBUILD
parent5713908cccc16aa5c28204c019d84b4ca98c715d (diff)
downloadaports-98717328ad9a313876ed04fbcaa946fb34b6b00d.tar.gz
aports-98717328ad9a313876ed04fbcaa946fb34b6b00d.tar.bz2
aports-98717328ad9a313876ed04fbcaa946fb34b6b00d.tar.xz
testing/py3-flask-dbconfig: drop py2
Diffstat (limited to 'testing/py3-flask-dbconfig/APKBUILD')
-rw-r--r--testing/py3-flask-dbconfig/APKBUILD35
1 files changed, 11 insertions, 24 deletions
diff --git a/testing/py3-flask-dbconfig/APKBUILD b/testing/py3-flask-dbconfig/APKBUILD
index 152912be95..af921214e0 100644
--- a/testing/py3-flask-dbconfig/APKBUILD
+++ b/testing/py3-flask-dbconfig/APKBUILD
@@ -1,41 +1,28 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-flask-dbconfig
+pkgname=py3-flask-dbconfig
_pkgname=Flask-DBConfig
pkgver=0.3.12
-pkgrel=0
+pkgrel=1
pkgdesc="Flask local DB extension"
-url="https://pypi.python.org/pypi/Flask-DBConfig"
+options="!check" # No testsuite
+url="https://github.com/tedw4rd/flask-db-configuration/"
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-dbconfig" # Backwards compatibility
+provides="py-flask-dbconfig=$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="82e419da5d9e6bea150dfc200431c853 Flask-DBConfig-0.3.12.tar.gz"
-sha256sums="bd0b1ed52e392b21a92acec77f97978b7a7295ec1cf69c130494c7b7fb73b051 Flask-DBConfig-0.3.12.tar.gz"
sha512sums="3fd006e4dde523fc12a446aa8c42fb0e69e22d43b303ecd0556433cf6ddbcbbefdbac9a0f2a87236901baab14b42df9a146ee4d44c0ae7014ad24d7b8722b6f4 Flask-DBConfig-0.3.12.tar.gz"