[arch-commits] Commit in python-levenshtein/repos/community-x86_64 (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Wed Aug 3 10:46:52 UTC 2022


    Date: Wednesday, August 3, 2022 @ 10:46:51
  Author: arojas
Revision: 1259996

archrelease: copy trunk to community-x86_64

Added:
  python-levenshtein/repos/community-x86_64/PKGBUILD
    (from rev 1259995, python-levenshtein/trunk/PKGBUILD)
Deleted:
  python-levenshtein/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   55 ++++++++++++++++++++++++++++++++++---------------------
 1 file changed, 34 insertions(+), 21 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-03 10:46:31 UTC (rev 1259995)
+++ PKGBUILD	2022-08-03 10:46:51 UTC (rev 1259996)
@@ -1,21 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Thomas S Hatch <thatch45 at gmail.com>
-# Contributor: shamrok <szamrok at gmail.com>
-# Contributor: scj <scj archlinux us>
-
-pkgname=python-levenshtein
-pkgver=0.20.1
-pkgrel=1
-pkgdesc="Python extension for computing string edit distances and similarities"
-url="https://pypi.python.org/pypi/python-Levenshtein/"
-license=('GPL')
-arch=('x86_64')
-depends=('python')
-makedepends=('python-scikit-build')
-source=("https://files.pythonhosted.org/packages/source/L/Levenshtein/Levenshtein-$pkgver.tar.gz")
-sha512sums=('0b74b619e123454f430a33414a9eb18ea57c5294f5d6a0a0e9cb78b79949f2acbae75c299e7263551b6cc9fad5768707b95592cfc3b5e063038b6ba8f50d218b')
-
-package() {
-  cd Levenshtein-$pkgver
-  python setup.py build install -O1 --prefix=/usr --root="$pkgdir"
-}

Copied: python-levenshtein/repos/community-x86_64/PKGBUILD (from rev 1259995, python-levenshtein/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-03 10:46:51 UTC (rev 1259996)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+# Contributor: shamrok <szamrok at gmail.com>
+# Contributor: scj <scj archlinux us>
+
+pkgname=python-levenshtein
+pkgver=0.20.1
+pkgrel=2
+pkgdesc="Python extension for computing string edit distances and similarities"
+url="https://pypi.python.org/pypi/python-Levenshtein/"
+license=('GPL')
+arch=('x86_64')
+depends=('python-rapidfuzz')
+makedepends=('python-scikit-build' 'cython' 'rapidfuzz-cpp')
+checkdepends=('python-pytest')
+#source=("https://files.pythonhosted.org/packages/source/L/Levenshtein/Levenshtein-$pkgver.tar.gz")
+source=("https://github.com/maxbachmann/Levenshtein/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('9f3ab4d0e9766980e30956b85142528af2263f557d7cd3de50684fcb9aa713cdd7fd011762d16b2e2f0fe0a54e217c6d8f45246a6ccd33a4ea132ce0674c0a0f')
+
+build() {
+  cd Levenshtein-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd Levenshtein-$pkgver
+  PYTHONPATH=`echo "$PWD"/_skbuild/linux-x86_64-*/setuptools/lib.linux-x86_64-*` \
+  pytest
+}
+
+package() {
+  cd Levenshtein-$pkgver
+  python setup.py install -O1 --root="$pkgdir"
+}



More information about the arch-commits mailing list