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

Felix Yan felixonmars at archlinux.org
Fri Nov 17 00:12:15 UTC 2017


    Date: Friday, November 17, 2017 @ 00:12:13
  Author: felixonmars
Revision: 267055

upgpkg: python-astor 0.6-1

Modified:
  python-astor/trunk/PKGBUILD

----------+
 PKGBUILD |   34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-16 23:57:17 UTC (rev 267054)
+++ PKGBUILD	2017-11-17 00:12:13 UTC (rev 267055)
@@ -3,35 +3,35 @@
 
 pkgbase=python-astor
 pkgname=('python-astor' 'python2-astor')
-pkgver=0.5
-pkgrel=2
+pkgver=0.6
+pkgrel=1
 pkgdesc="Read/rewrite/write Python ASTs"
 arch=('any')
 license=('BSD')
 url="http://astor.rtfd.org/"
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
+makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python-nose' 'python2-nose')
-source=("git+https://github.com/berkerpeksag/astor.git#tag=$pkgver")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/berkerpeksag/astor/archive/$pkgver.tar.gz")
+sha512sums=('6a0da12603db8e9242031b1382275f2dd470aca60a1f7573c95178bc2c72e53ad765585247d395a793e8d48fbb9d1bf8e3c422a3961cc3b655c8fc8242a2b370')
 
 prepare() {
-  cp -a astor{,-py2}
+  cp -a astor-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir/astor"
+  cd "$srcdir"/astor-$pkgver
   python setup.py build
 
-  cd "$srcdir/astor-py2"
+  cd "$srcdir"/astor-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  # https://github.com/berkerpeksag/astor/issues/48
-  cd "$srcdir/astor"
+  # https://github.com/berkerpeksag/astor/issues/89
+  cd "$srcdir"/astor-$pkgver
   nosetests3 || warning "Tests failed"
 
-  cd "$srcdir/astor-py2"
+  cd "$srcdir"/astor-$pkgver-py2
   nosetests2
 }
 
@@ -38,15 +38,15 @@
 package_python-astor() {
   depends=('python')
 
-  cd astor
-  python setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  cd astor-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-astor() {
   depends=('python2')
 
-  cd astor-py2
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  cd astor-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }


More information about the arch-commits mailing list