[arch-commits] Commit in python-pyflakes/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Apr 14 03:32:56 UTC 2020


    Date: Tuesday, April 14, 2020 @ 03:32:55
  Author: felixonmars
Revision: 613947

archrelease: copy trunk to community-testing-any

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

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

Copied: python-pyflakes/repos/community-testing-any/PKGBUILD (from rev 613946, python-pyflakes/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-04-14 03:32:55 UTC (rev 613947)
@@ -0,0 +1,61 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Karol 'Kenji Takahashi' Woźniak <kenji.sx>
+# Contributor: Tianjiao Yin <ytj000+AUR at gmail.com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: TDY <tdy at gmx.com>
+# Contributor: Tiago Pierezan Camargo <tcamargo at gmail.com>
+
+pkgbase=python-pyflakes
+pkgname=(python-pyflakes python2-pyflakes)
+pkgver=2.2.0
+pkgrel=1
+pkgdesc='A lint-like tool for Python to identify common errors quickly without executing code'
+arch=('any')
+url='https://pypi.python.org/pypi/pyflakes'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/p/pyflakes/pyflakes-$pkgver.tar.gz")
+sha512sums=('6a411efef261874c216b71bcb095412448a8cbeefdf7fa5577d4f4edd48a4a740a4433665e87e5dda2c08fd9ee3bfb7f134f56c7523e1303243edfa92b0ccb35')
+
+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
+}



More information about the arch-commits mailing list