Date: Saturday, February 24, 2018 @ 01:07:46
  Author: anthraxx
Revision: 317466

archrelease: copy trunk to extra-x86_64

Added:
  python-urwid/repos/extra-x86_64/PKGBUILD
    (from rev 317465, python-urwid/trunk/PKGBUILD)
Deleted:
  python-urwid/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   94 ++++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 53 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-24 01:07:37 UTC (rev 317465)
+++ PKGBUILD    2018-02-24 01:07:46 UTC (rev 317466)
@@ -1,41 +0,0 @@
-# $Id$
-# Maintainer: Daniel Isenmann <dan...@archlinux.org>
-# Maintainer: Sergej Pupykin <ser...@aur.archlinux.org>
-# Maintainer: Douglas Soares de Andrade <dsandr...@gmail.com>
-
-pkgname=('python-urwid' 'python2-urwid')
-pkgver=1.3.1
-pkgrel=3
-pkgdesc="Curses-based user interface library."
-license=('LGPL')
-arch=('i686' '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')
-
-build() {
-  cp -r urwid-$pkgver python2-urwid-$pkgver
-
-  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
-}
-
-package_python-urwid() {
-  depends=('python')
-
-  cd "$srcdir/urwid-$pkgver"
-  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-}
-
-package_python2-urwid() {
-  depends=('python2')
- 
-  cd "$srcdir/python2-urwid-$pkgver"
-  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
-}

Copied: python-urwid/repos/extra-x86_64/PKGBUILD (from rev 317465, 
python-urwid/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2018-02-24 01:07:46 UTC (rev 317466)
@@ -0,0 +1,53 @@
+# 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=2.0.1
+pkgrel=1
+pkgdesc='Curses-based user interface library'
+url='http://excess.org/urwid/'
+arch=('x86_64')
+license=('LGPL')
+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() {
+  (cd urwid-release-${pkgver}
+    python setup.py build
+  )
+  (cd urwid-release-${pkgver}-py2
+    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' 'glibc')
+  cd urwid-release-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" -O1 --skip-build
+}
+
+package_python2-urwid() {
+  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