Date: Friday, April 7, 2023 @ 08:36:48
  Author: dvzrv
Revision: 473109

archrelease: copy trunk to staging-x86_64

Added:
  python-urwid/repos/staging-x86_64/
  python-urwid/repos/staging-x86_64/PKGBUILD
    (from rev 473108, python-urwid/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: python-urwid/repos/staging-x86_64/PKGBUILD (from rev 473108, 
python-urwid/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD                             (rev 0)
+++ staging-x86_64/PKGBUILD     2023-04-07 08:36:48 UTC (rev 473109)
@@ -0,0 +1,52 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Daniel Isenmann <[email protected]>
+# Contributor: Sergej Pupykin <[email protected]>
+# Contributor: Douglas Soares de Andrade <[email protected]>
+
+_name=urwid
+pkgname=python-urwid
+pkgver=2.1.2.r41.g0c0ea37
+# somewhere past 2.1.2 as there has not been a release in years ;_;
+# https://github.com/urwid/urwid/issues/511
+_commit=0c0ea377ab9b418cbb5233fa6e178dd05f1f4e5a
+pkgrel=1
+pkgdesc='Curses-based user interface library'
+url='https://urwid.org/'
+arch=('x86_64')
+license=('LGPL')
+depends=('python' 'glibc')
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-setuptools'
+  'python-wheel'
+)
+source=(
+  git+https://github.com/$_name/$_name.git#commit=$_commit
+)
+sha256sums=('SKIP')
+sha512sums=('SKIP')
+
+pkgver() {
+  cd $_name
+  git describe --long --abbrev=7 | sed 
's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+  cd $_name
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name
+  python -m unittest discover -vs $_name/tests
+}
+
+package() {
+  cd $_name
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  rm -rv "${pkgdir}"/usr/lib/python*/site-packages/urwid/tests
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to