1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00

testing/py-flake8-snippets: update to py3

This commit is contained in:
Fabian Affolter 2016-11-08 23:03:58 +00:00 committed by Timo Teräs
parent 7a19e9a078
commit 8f2d6f9d86

View file

@ -3,37 +3,24 @@
pkgname=py-flake8-snippets
_pkgname=flake8-snippets
pkgver=0.1
pkgrel=1
pkgrel=2
pkgdesc="Extension for flake8 which lint for code snippets"
url="https://github.com/bitmazk/flake8-snippets"
arch="noarch"
license="MIT"
depends="python2 flake8"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
depends="flake8"
makedepends="python3-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
_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
}
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$_builddir"
python2 setup.py build || return 1
cd "$builddir"
python3 setup.py build || return 1
}
package() {
cd "$_builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="c1724b6d6442f8c91f92bad33741d687 flake8-snippets-0.1.tar.gz"