diff options
Diffstat (limited to 'main/flake8/APKBUILD')
-rw-r--r-- | main/flake8/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/main/flake8/APKBUILD b/main/flake8/APKBUILD new file mode 100644 index 0000000000..f86280198c --- /dev/null +++ b/main/flake8/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Peter Bui <pnutzh4x0r@gmail.com> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=flake8 +pkgver=2.4.1 +pkgrel=0 +pkgdesc="A modular source code checker" +url="https://gitlab.com/pycqa/flake8" +arch="noarch" +license="MIT" +depends="python py-setuptools py-mccabe py-pep8 pyflakes" +depends_dev="" +makedepends="python-dev" +install="" +subpackages="" +source="http://pypi.python.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 +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="ed45d3db81a3b7c88bd63c6e37ca1d65 flake8-2.4.1.tar.gz" +sha256sums="2e7ebbe59d8c85e626e36d99f0db2f578394313d3f7ce9dc9f1da57ef6cd7537 flake8-2.4.1.tar.gz" +sha512sums="8ddd07d6be53b06efcf7dd9aa2daa070ab209f7177e46f32a3bcae545acbb5e020aa27aeab54426798ae6c3722b38928b06dc3e53115cc624a16fa0fa97f4840 flake8-2.4.1.tar.gz" |