Date: Sunday, May 7, 2023 @ 13:20:08
  Author: alucryd
Revision: 1459343

upgpkg: python-jellyfish 0.11.2-1

Modified:
  python-jellyfish/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++--------------------------
 1 file changed, 11 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-07 13:19:53 UTC (rev 1459342)
+++ PKGBUILD    2023-05-07 13:20:08 UTC (rev 1459343)
@@ -2,8 +2,8 @@
 # Contributor: Jelle van der Waa <[email protected]>
 
 pkgname=python-jellyfish
-pkgver=0.9.1
-pkgrel=3
+pkgver=0.11.2
+pkgrel=1
 pkgdesc='A python library for doing approximate and phonetic matching of 
strings'
 arch=(x86_64)
 url='https://github.com/jamesturk/jellyfish'
@@ -11,28 +11,14 @@
 depends=(python)
 makedepends=(
   git
-  python-setuptools
+  python-maturin
+  python-build
+  python-installer
 )
-_tag=f31b9bd8c06dd764023a8cf0a82319c0ce20a0bb
-source=(
-  git+https://github.com/jamesturk/jellyfish.git#tag=${_tag}
-  git+https://github.com/jamesturk/cjellyfish.git
-)
-sha256sums=(
-  SKIP
-  SKIP
-)
+_tag=eda72de333944e2eb65c5dbfb58424e492840924
+source=(git+https://github.com/jamesturk/jellyfish.git#tag=${_tag})
+b2sums=(SKIP)
 
-prepare() {
-  cd jellyfish
-  for submodule in cjellyfish; do
-    git submodule init ${submodule}
-    git config submodule.${submodule}.url ../${submodule}
-    git -c protocol.file.allow=always submodule update ${submodule}
-  done
-  sed 's/0.9.0/0.9.1/' -i setup.py
-}
-
 pkgver() {
   cd jellyfish
   git describe --tags | sed 's/^v//'
@@ -40,13 +26,12 @@
 
 build() {
   cd jellyfish
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 package() {
-  cd jellyfish
-  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-jellyfish/
+  python -m installer --destdir="${pkgdir}" jellyfish/dist/*.whl
+  install -Dm 644 jellyfish/LICENSE -t 
"${pkgdir}"/usr/share/licenses/python-jellyfish/
 }
 
 # vim: ts=2 sw=2 et:

Reply via email to