[arch-commits] Commit in pep8/repos (2 files)
Felix Yan
fyan at nymeria.archlinux.org
Mon Mar 17 04:20:51 UTC 2014
Date: Monday, March 17, 2014 @ 05:20:50
Author: fyan
Revision: 107323
archrelease: copy trunk to community-staging-any
Added:
pep8/repos/community-staging-any/
pep8/repos/community-staging-any/PKGBUILD
(from rev 107322, pep8/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: pep8/repos/community-staging-any/PKGBUILD (from rev 107322, pep8/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2014-03-17 04:20:50 UTC (rev 107323)
@@ -0,0 +1,44 @@
+# $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=4
+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() {
+ cp -r $pkgbase-$pkgver{,-python2}
+}
+
+package_pep8-python2() {
+ depends=('python2' 'python2-setuptools')
+ provides=('pep8')
+ conflicts=('pep8')
+ replaces=('pep8')
+
+ cd $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-setuptools')
+
+ cd $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