Date: Saturday, February 24, 2018 @ 01:07:37
  Author: anthraxx
Revision: 317465

upgpkg: python-urwid 2.0.1-1

Modified:
  python-urwid/trunk/PKGBUILD

----------+
 PKGBUILD |   68 +++++++++++++++++++++++++++++++++++--------------------------
 1 file changed, 40 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-23 22:54:11 UTC (rev 317464)
+++ PKGBUILD    2018-02-24 01:07:37 UTC (rev 317465)
@@ -1,41 +1,53 @@
-# $Id$
-# Maintainer: Daniel Isenmann <dan...@archlinux.org>
-# Maintainer: Sergej Pupykin <ser...@aur.archlinux.org>
-# Maintainer: Douglas Soares de Andrade <dsandr...@gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Daniel Isenmann <dan...@archlinux.org>
+# Contributor: Sergej Pupykin <ser...@aur.archlinux.org>
+# Contributor: Douglas Soares de Andrade <dsandr...@gmail.com>
 
+pkgbase=python-urwid
 pkgname=('python-urwid' 'python2-urwid')
-pkgver=1.3.1
-pkgrel=3
-pkgdesc="Curses-based user interface library."
+pkgver=2.0.1
+pkgrel=1
+pkgdesc='Curses-based user interface library'
+url='http://excess.org/urwid/'
+arch=('x86_64')
 license=('LGPL')
-arch=('x86_64')
-makedepends=('python2-setuptools' 'python-setuptools')
-url="http://excess.org/urwid/";
-source=(https://pypi.python.org/packages/source/u/urwid/urwid-$pkgver.tar.gz)
-md5sums=('2e1a005cb31368fe21bfeba2d6ad5a5c')
+makedepends=('glibc' 'python-setuptools' 'python2-setuptools')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/urwid/urwid/archive/release-${pkgver}.tar.gz)
+sha512sums=('9dbb868e7111ad35be84db3bea6df8cd3fc2b71cd93755d481863c2e0e262a757193e776a1edc1478996876895e2519510a160c2434a115f425a91601fdcc833')
 
+prepare() {
+  cp -a urwid-release-${pkgver}{,-py2}
+  sed -i 's|bin/python$|bin/python2|' urwid-release-${pkgver}-py2/urwid/*.py
+}
+
 build() {
-  cp -r urwid-$pkgver python2-urwid-$pkgver
+  (cd urwid-release-${pkgver}
+    python setup.py build
+  )
+  (cd urwid-release-${pkgver}-py2
+    python2 setup.py build
+  )
+}
 
-  cd "$srcdir/urwid-$pkgver"
-  python setup.py build
-
-  cd "$srcdir/python2-urwid-$pkgver"
-  sed -i 's#bin/python#bin/python2#' urwid/*.py
-  
-  python2 setup.py build
+check() {
+  (cd urwid-release-${pkgver}
+    python setup.py test
+  )
+  (cd urwid-release-${pkgver}-py2
+    python2 setup.py test
+  )
 }
 
 package_python-urwid() {
-  depends=('python')
-
-  cd "$srcdir/urwid-$pkgver"
-  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+  depends=('python' 'glibc')
+  cd urwid-release-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" -O1 --skip-build
 }
 
 package_python2-urwid() {
-  depends=('python2')
- 
-  cd "$srcdir/python2-urwid-$pkgver"
-  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+  depends=('python2' 'glibc')
+  cd urwid-release-${pkgver}-py2
+  python2 setup.py install --prefix=/usr --root="${pkgdir}" -O1 --skip-build
 }
+
+# vim: ts=2 sw=2 et:

Reply via email to