Date: Saturday, December 24, 2016 @ 17:34:07
  Author: bpiotrowski
Revision: 201643

archrelease: copy trunk to community-staging-any

Added:
  python-pyflakes/repos/community-staging-any/
  python-pyflakes/repos/community-staging-any/PKGBUILD
    (from rev 201642, python-pyflakes/trunk/PKGBUILD)

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

Copied: python-pyflakes/repos/community-staging-any/PKGBUILD (from rev 201642, 
python-pyflakes/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2016-12-24 17:34:07 UTC (rev 201643)
@@ -0,0 +1,62 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Karol 'Kenji Takahashi' Woźniak <kenji.sx>
+# Contributor: Tianjiao Yin <[email protected]>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: TDY <[email protected]>
+# Contributor: Tiago Pierezan Camargo <[email protected]>
+
+pkgbase=python-pyflakes
+pkgname=(python-pyflakes python2-pyflakes)
+pkgver=1.3.0
+pkgrel=2
+pkgdesc='A lint-like tool for Python to identify common errors quickly without 
executing code'
+arch=('any')
+url='http://pypi.python.org/pypi/pyflakes'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/p/pyflakes/pyflakes-$pkgver.tar.gz";)
+sha1sums=('bf4d4a40dea41efeaa9490ecd8f10eb7e0236958')
+
+prepare() {
+  cp -a "pyflakes-$pkgver"{,-py2}
+}
+
+build() {
+  cd "$srcdir"/pyflakes-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/pyflakes-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/pyflakes-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/pyflakes-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-pyflakes() {
+  depends=('python-setuptools')
+
+  cd pyflakes-$pkgver
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+  # We have python 3 as default python, and want to keep compatibility with 
the old pyflakes3k naming
+  ln -s pyflakes "$pkgdir/usr/bin/pyflakes3k"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pyflakes() {
+  depends=('python2-setuptools')
+
+  cd pyflakes-$pkgver-py2
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+  mv "$pkgdir"/usr/bin/pyflakes{,-python2}
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to