Date: Saturday, April 22, 2023 @ 12:21:18
  Author: alerque
Revision: 1448298

archrelease: copy trunk to community-staging-any

Added:
  python-pylev/repos/community-staging-any/PKGBUILD
    (from rev 1448297, python-pylev/trunk/PKGBUILD)
Deleted:
  python-pylev/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   69 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 34 insertions(+), 35 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-22 12:21:09 UTC (rev 1448297)
+++ PKGBUILD    2023-04-22 12:21:18 UTC (rev 1448298)
@@ -1,35 +0,0 @@
-# Maintainer: Caleb Maclennan <[email protected]>
-# Contributor: Eli Schwartz <[email protected]>
-
-_pkgname=pylev
-pkgname=python-pylev
-pkgver=1.4.0
-pkgrel=5
-pkgdesc="A pure Python Levenshtein implementation that's not freaking GPL'd"
-arch=('any')
-url="https://github.com/toastdriven/${_pkgname}";
-license=('BSD')
-depends=('python')
-makedepends=('python-setuptools')
-source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('f7bf8fb939af1457b301a0f16b3e8c3979031e36a852b7f58fa353a33b930780')
-b2sums=('d49e153d308165dcdc06bad94013afa4ccc6d2a6ecff943a2718a8f9ab71bbacb9c0cf8b604dbf0c77322a8d0cbeba5ffaed13531a31210507f144f716f8e740')
-
-build(){
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py build
-}
-
-check() {
-    cd ${_pkgname}-${pkgver}
-
-    python -m unittest tests
-}
-
-package() {
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-pylev/repos/community-staging-any/PKGBUILD (from rev 1448297, 
python-pylev/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-22 12:21:18 UTC (rev 1448298)
@@ -0,0 +1,34 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+
+_pkgname=pylev
+pkgname=python-pylev
+pkgver=1.4.0
+pkgrel=7
+pkgdesc='A pure Python Levenshtein implementation'
+arch=(any)
+url="https://github.com/toastdriven/${_pkgname}";
+license=(BSD)
+depends=(python)
+makedepends=(python-{build,installer,wheel}
+             python-setuptools)
+_archive="$_pkgname-$pkgver"
+source=("${url}/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('f7bf8fb939af1457b301a0f16b3e8c3979031e36a852b7f58fa353a33b930780')
+b2sums=('d49e153d308165dcdc06bad94013afa4ccc6d2a6ecff943a2718a8f9ab71bbacb9c0cf8b604dbf0c77322a8d0cbeba5ffaed13531a31210507f144f716f8e740')
+
+build(){
+    cd "$_archive"
+    python -m build -wn
+}
+
+check() {
+    cd "$_archive"
+    python -m unittest tests
+}
+
+package() {
+    cd "$_archive"
+    python -m installer -d "$pkgdir" dist/*.whl
+    install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}

Reply via email to