summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD27
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e6909e48bb6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-flake8-eradicate
+ pkgdesc = Flake8 plugin to find commented out or dead code
+ pkgver = 0.4.0
+ pkgrel = 1
+ url = https://github.com/sobolevn/flake8-eradicate
+ arch = any
+ license = MIT
+ depends = python
+ depends = python-setuptools
+ depends = python-dephell
+ depends = python-eradicate
+ source = https://github.com/sobolevn/flake8-eradicate/archive/0.4.0.tar.gz
+ sha512sums = 6e9907d4e1720c8cb34b684e9fa069ac37027246b53c10d4958f0d173bb18654c65c76fe08716c37bcedcf4e61262bee9b8b0d5b3f74feda987fe707a1c47c7c
+
+pkgname = python-flake8-eradicate
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..510e7c291aa
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: neodarz <neodarz at neodarz dot net>
+
+_pkgname=flake8-eradicate
+pkgname=python-$_pkgname
+
+pkgver=0.4.0
+pkgrel=1
+pkgdesc="Flake8 plugin to find commented out or dead code"
+
+url='https://github.com/sobolevn/flake8-eradicate'
+arch=('any')
+license=('MIT')
+
+depends=('python' 'python-setuptools' 'python-dephell' 'python-eradicate')
+
+source=("https://github.com/sobolevn/$_pkgname/archive/$pkgver.tar.gz")
+sha512sums=('6e9907d4e1720c8cb34b684e9fa069ac37027246b53c10d4958f0d173bb18654c65c76fe08716c37bcedcf4e61262bee9b8b0d5b3f74feda987fe707a1c47c7c')
+
+prepare() {
+ cd "$_pkgname-$pkgver"
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+}