[arch-commits] Commit in python-flake8-blind-except/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Feb 9 07:30:07 UTC 2017


    Date: Thursday, February 9, 2017 @ 07:30:06
  Author: felixonmars
Revision: 211388

archrelease: copy trunk to community-any

Added:
  python-flake8-blind-except/repos/community-any/
  python-flake8-blind-except/repos/community-any/PKGBUILD
    (from rev 211387, python-flake8-blind-except/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: python-flake8-blind-except/repos/community-any/PKGBUILD (from rev 211387, python-flake8-blind-except/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-02-09 07:30:06 UTC (rev 211388)
@@ -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=1
+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