[arch-commits] Commit in pep8/trunk (PKGBUILD)

Felix Yan fyan at nymeria.archlinux.org
Mon Mar 17 04:19:59 UTC 2014


    Date: Monday, March 17, 2014 @ 05:19:59
  Author: fyan
Revision: 107322

upgpkg: pep8 1.4.6-4

- python 3.4 rebuild

Modified:
  pep8/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-17 02:34:57 UTC (rev 107321)
+++ PKGBUILD	2014-03-17 04:19:59 UTC (rev 107322)
@@ -6,7 +6,7 @@
 pkgbase=pep8
 pkgname=("$pkgbase-python2" "$pkgbase-python3")
 pkgver=1.4.6
-pkgrel=3
+pkgrel=4
 pkgdesc="Python style guide checker"
 arch=('any')
 url="http://github.com/jcrocholl/pep8/"
@@ -16,8 +16,7 @@
 sha256sums=('723ec96fc01a1c2d8f9e7d4239a769cd5b499951a1d6c4edc3eb28c6801ed0f8')
 
 build() {
-  cd "$srcdir"
-  cp -r $pkgbase-$pkgver $pkgbase-$pkgver-python2
+  cp -r $pkgbase-$pkgver{,-python2}
 }
 
 package_pep8-python2() {
@@ -26,7 +25,7 @@
   conflicts=('pep8')
   replaces=('pep8')
   
-  cd "$srcdir/$pkgbase-$pkgver-python2"
+  cd $pkgbase-$pkgver-python2
   python2 setup.py install --prefix=/usr --root="$pkgdir/"
   mv "$pkgdir/usr/bin/pep8" "$pkgdir/usr/bin/pep8-python2"
 
@@ -36,7 +35,7 @@
 package_pep8-python3() {
   depends=('python3' 'python-setuptools')
   
-  cd "$srcdir/$pkgbase-$pkgver"
+  cd $pkgbase-$pkgver
   python3 setup.py install --prefix=/usr --root="$pkgdir/"
 
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"




More information about the arch-commits mailing list