Date: Friday, April 7, 2023 @ 00:13:11
  Author: grawlinson
Revision: 1440341

archrelease: copy trunk to community-any

Added:
  python-wcwidth/repos/community-any/PKGBUILD
    (from rev 1440340, python-wcwidth/trunk/PKGBUILD)
Deleted:
  python-wcwidth/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   74 +++++++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 53 insertions(+), 21 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-07 00:12:22 UTC (rev 1440340)
+++ PKGBUILD    2023-04-07 00:13:11 UTC (rev 1440341)
@@ -1,21 +0,0 @@
-# Maintainer: Kyle Keen <[email protected]>
-# Contributor: wenLiangcan <boxeed at gmail dot com>
-
-pkgname=python-wcwidth
-_name=wcwidth
-pkgver=0.2.5
-pkgrel=6
-pkgdesc="Measures number of Terminal column cells of wide-character codes"
-url="https://github.com/jquast/wcwidth";
-license=('MIT')
-arch=('any')
-depends=('python')
-makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/w/$_name/$_name-$pkgver.tar.gz";)
-md5sums=('a07a75f99d316e14838ac760c831ea37')
-
-package() {
-  cd "$srcdir/$_name-$pkgver"
-  python3 setup.py install --root="${pkgdir}" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python-wcwidth/repos/community-any/PKGBUILD (from rev 1440340, 
python-wcwidth/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-07 00:13:11 UTC (rev 1440341)
@@ -0,0 +1,53 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Kyle Keen <[email protected]>
+# Contributor: wenLiangcan <boxeed at gmail dot com>
+
+pkgname=python-wcwidth
+pkgver=0.2.6
+pkgrel=1
+pkgdesc='Python library that measures the width of unicode strings rendered to 
a terminal'
+arch=('any')
+url='https://github.com/jquast/wcwidth'
+license=('MIT')
+depends=('python')
+makedepends=(
+  'git'
+  'python-build'
+  'python-installer'
+  'python-setuptools'
+  'python-wheel'
+)
+checkdepends=('python-pytest')
+#optdepends=('')
+_commit='f0232e5adfbcd7473021a5672c61ed79fee667f0'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+
+  rm -v tox.ini
+
+  pytest -v
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}

Reply via email to