diff options
Diffstat (limited to 'testing/py3-flask-components')
-rw-r--r-- | testing/py3-flask-components/APKBUILD | 30 |
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" |