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

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Sun Aug 18 14:08:04 UTC 2013


    Date: Sunday, August 18, 2013 @ 16:08:04
  Author: bpiotrowski
Revision: 95895

archrelease: copy trunk to community-testing-any

Added:
  pep8/repos/community-testing-any/
  pep8/repos/community-testing-any/PKGBUILD
    (from rev 95894, pep8/trunk/PKGBUILD)

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

Copied: pep8/repos/community-testing-any/PKGBUILD (from rev 95894, pep8/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2013-08-18 14:08:04 UTC (rev 95895)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Ismael Carnales <icarnales at gmail dot com>
+# Contributor: Sergey Mastykov <smastykov[at]gmail[dot]com>
+
+pkgbase=pep8
+pkgname=("$pkgbase-python2" "$pkgbase-python3")
+pkgver=1.4.6
+pkgrel=3
+pkgdesc="Python style guide checker"
+arch=('any')
+url="http://github.com/jcrocholl/pep8/"
+license=('custom:Expat')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://github.com/jcrocholl/$pkgbase/archive/${pkgver}.tar.gz")
+sha256sums=('723ec96fc01a1c2d8f9e7d4239a769cd5b499951a1d6c4edc3eb28c6801ed0f8')
+
+build() {
+  cd "$srcdir"
+  cp -r $pkgbase-$pkgver $pkgbase-$pkgver-python2
+}
+
+package_pep8-python2() {
+  depends=('python2' 'python2-distribute')
+  provides=('pep8')
+  conflicts=('pep8')
+  replaces=('pep8')
+  
+  cd "$srcdir/$pkgbase-$pkgver-python2"
+  python2 setup.py install --prefix=/usr --root="$pkgdir/"
+  mv "$pkgdir/usr/bin/pep8" "$pkgdir/usr/bin/pep8-python2"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_pep8-python3() {
+  depends=('python3' 'python-distribute')
+  
+  cd "$srcdir/$pkgbase-$pkgver"
+  python3 setup.py install --prefix=/usr --root="$pkgdir/"
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list