[arch-commits] Commit in python-flake8-blind-except/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Jun 30 18:32:51 UTC 2018
Date: Saturday, June 30, 2018 @ 18:32:51
Author: foutrelis
Revision: 349016
archrelease: copy trunk to community-staging-any
Added:
python-flake8-blind-except/repos/community-staging-any/
python-flake8-blind-except/repos/community-staging-any/PKGBUILD
(from rev 349015, python-flake8-blind-except/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-flake8-blind-except/repos/community-staging-any/PKGBUILD (from rev 349015, python-flake8-blind-except/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 18:32:51 UTC (rev 349016)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-flake8-blind-except
+pkgname=('python-flake8-blind-except' 'python2-flake8-blind-except')
+pkgver=0.1.1
+pkgrel=2
+pkgdesc='A flake8 extension that checks for blind except: statements'
+arch=('any')
+license=('MIT')
+url='https://github.com/elijahandrews/flake8-blind-except'
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+source=("git+https://github.com/elijahandrews/flake8-blind-except.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a flake8-blind-except{,-py2}
+}
+
+build() {
+ cd "$srcdir"/flake8-blind-except
+ python setup.py build
+
+ cd "$srcdir"/flake8-blind-except-py2
+ python2 setup.py build
+}
+
+package_python-flake8-blind-except() {
+ depends=('python-setuptools')
+
+ cd "$srcdir"/flake8-blind-except
+ python setup.py install --root="$pkgdir"/ --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-flake8-blind-except() {
+ depends=('python2-setuptools')
+
+ cd "$srcdir"/flake8-blind-except-py2
+ python2 setup.py install --root="$pkgdir"/ --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list