blob: 6657f1156ae7d151dc486b3b447309c131a2445c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=flake8
pkgver=3.0.4
pkgrel=0
pkgdesc="A modular source code checker"
url="https://gitlab.com/pycqa/flake8"
arch="noarch"
license="MIT"
depends="python2 py-setuptools py-mccabe py-pep8 pyflakes"
depends_dev=""
makedepends="python2-dev"
install=""
subpackages=""
source="https://pypi.io/packages/source/f/$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
}
build() {
cd "$_builddir"
python2 setup.py build || return 1
}
package() {
cd "$_builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="2b48e5ef1d21c687f10a66d44f1dda5c flake8-3.0.4.tar.gz"
sha256sums="b4c210c998f07d6ff24325dd91fbc011f2c37bcd6bf576b188de01d8656e970d flake8-3.0.4.tar.gz"
sha512sums="845b38824112edfc8244f6ec795b5659f99b4e8171af5e6c737f345e5a429f7b26f57e24ccc42fa2d8117b7ceff4dd100fe840064260fa17f203804e4b83ab06 flake8-3.0.4.tar.gz"
|