[arch-commits] Commit in pep8/trunk (PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Fri Apr 4 08:05:19 UTC 2014
Date: Friday, April 4, 2014 @ 10:05:19
Author: fyan
Revision: 108802
upgpkg: pep8 1.5.2-2
- use git checkout instead (source different from pypi tarball, and it passes tests)
Modified:
pep8/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++++++++++++++-------------------
1 file changed, 16 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-04-04 07:49:38 UTC (rev 108801)
+++ PKGBUILD 2014-04-04 08:05:19 UTC (rev 108802)
@@ -6,38 +6,35 @@
pkgbase=pep8
pkgname=("$pkgbase" "$pkgbase-python2")
pkgver=1.5.2
-pkgrel=1
+pkgrel=2
pkgdesc="Python style guide checker"
arch=('any')
url="http://github.com/jcrocholl/pep8/"
license=('custom:Expat')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-${pkgver}.tar.gz"
- LICENSE)
-sha256sums=('4e0e74c0e3f06ad301fb66a9a24c2d07b5dc324c96a9a139d924a5e102177cf7'
- '4a18840b7c132952f3f3d42c355289018ea263cbe75b25db31c9feb1b61e9b40')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+source=("git+https://github.com/jcrocholl/${pkgbase}.git#tag=$pkgver")
+sha256sums=('SKIP')
prepare() {
- cp -r $pkgbase-$pkgver{,-py2}
+ cp -r $pkgbase{,-py2}
- sed -i '1s/env python$/python2/' $pkgbase-$pkgver-py2/pep8.py
+ sed -i '1s/env python$/python2/' $pkgbase-py2/pep8.py
}
build() {
- cd "${srcdir}/${pkgbase}-${pkgver}"
+ cd "${srcdir}/${pkgbase}"
python setup.py build
- cd "${srcdir}/${pkgbase}-${pkgver}-py2"
+ cd "${srcdir}/${pkgbase}-py2"
python2 setup.py build
}
check() {
- # Failure in tests: https://github.com/jcrocholl/pep8/issues/267
- cd "${srcdir}/${pkgbase}-${pkgver}"
- #python setup.py test
+ cd "${srcdir}/${pkgbase}"
+ python setup.py test
- cd "${srcdir}/${pkgbase}-${pkgver}-py2"
- #python2 setup.py test
+ cd "${srcdir}/${pkgbase}-py2"
+ python2 setup.py test
}
package_pep8() {
@@ -46,20 +43,20 @@
conflicts=('pep8-python3')
replaces=('pep8-python3')
- cd $pkgbase-$pkgver
+ cd $pkgbase
python3 setup.py install -O1 --prefix=/usr --root="$pkgdir/"
- install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_pep8-python2() {
depends=('python2' 'python2-setuptools')
- cd $pkgbase-$pkgver-py2
+ cd $pkgbase-py2
python2 setup.py install -O1 --prefix=/usr --root="$pkgdir/"
mv "$pkgdir/usr/bin/pep8" "$pkgdir/usr/bin/pep8-python2"
- install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list