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

Felix Yan felixonmars at archlinux.org
Thu May 31 01:00:52 UTC 2018


    Date: Thursday, May 31, 2018 @ 01:00:51
  Author: felixonmars
Revision: 333646

upgpkg: python-pudb 2018.1-1

Modified:
  python-pudb/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-31 01:00:37 UTC (rev 333645)
+++ PKGBUILD	2018-05-31 01:00:51 UTC (rev 333646)
@@ -4,28 +4,28 @@
 
 pkgbase=python-pudb
 pkgname=(python-pudb python2-pudb)
-pkgver=2017.1.4
+pkgver=2018.1
 pkgrel=1
 pkgdesc="A full-screen, console-based Python debugger"
 url="http://pypi.python.org/pypi/pudb"
 arch=('any')
 license=('MIT')
-makedepends=('python-urwid' 'python-pygments' 'python2-urwid' 'python2-pygments' 'git')
+makedepends=('python-urwid' 'python-pygments' 'python2-urwid' 'python2-pygments')
 checkdepends=('python-pytest' 'python2-pytest')
-source=("git+https://github.com/inducer/pudb.git#tag=v$pkgver")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/inducer/pudb/archive/v$pkgver.tar.gz")
+sha512sums=('8aa3e1d7256c124609170cd64f673d745bcd7038d247fa711bd2310c0519feaa9c6838bb5444a1d4a0148f2b8e6804cfa36a565a4a5dbdee1dacc1101c07c9a6')
 
 prepare() {
-  cp -a pudb{,-py2}
+  cp -a pudb-$pkgver{,-py2}
 
-  sed -i 's,^#! /usr/bin/env python$,#! /usr/bin/env python2,' pudb-py2/pudb/debugger.py
+  sed -i 's,^#! /usr/bin/env python$,#! /usr/bin/env python2,' pudb-$pkgver-py2/pudb/debugger.py
 }
 
 build() {
-  cd "$srcdir"/pudb
+  cd "$srcdir"/pudb-$pkgver
   python setup.py build
 
-  cd "$srcdir"/pudb-py2
+  cd "$srcdir"/pudb-$pkgver-py2
   python2 setup.py build
 }
 
@@ -32,10 +32,10 @@
 check() {
   # TODO: make it work...
 
-  cd "$srcdir"/pudb
+  cd "$srcdir"/pudb-$pkgver
   # python -m pytest --tb=native -rxs test/
 
-  cd "$srcdir"/pudb-py2
+  cd "$srcdir"/pudb-$pkgver-py2
   # python2 -m pytest --tb=native -rxs test/
 }
 
@@ -42,7 +42,7 @@
 package_python-pudb() {
   depends=('python-urwid' 'python-pygments')
 
-  cd pudb
+  cd pudb-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
@@ -50,7 +50,7 @@
 package_python2-pudb() {
   depends=('python2-urwid' 'python2-pygments')
 
-  cd pudb-py2
+  cd pudb-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list