aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-flake8/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/py-flake8/APKBUILD')
-rw-r--r--main/py-flake8/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/main/py-flake8/APKBUILD b/main/py-flake8/APKBUILD
new file mode 100644
index 0000000000..e704726dac
--- /dev/null
+++ b/main/py-flake8/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-flake8
+_pkgname=flake8
+pkgver=2.3.0
+pkgrel=0
+pkgdesc="A modular source code checker"
+url="https://bitbucket.org/tarek/flake8/wiki/Home"
+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="488d6166f6b9ef9fe9d433b95e77dc07 flake8-2.3.0.tar.gz"
+sha256sums="5ee1a43ccd0716d6061521eec6937c983efa027793013e572712c4da55c7c83e flake8-2.3.0.tar.gz"
+sha512sums="827596fe8cbf4eb25e9217f4869e806c980a77d9ca27a94a6f4978383d4ebd35681a8afea843ee667ad885425677f84e88a49e802e5c7d3ef1ee09be924340d3 flake8-2.3.0.tar.gz"