wok annotate python-whoosh/receipt @ rev 25026

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 19 10:39:49 2022 +0000 (2022-05-19)
parents 2de18cf22f08
children
rev   line source
pascal@17198 1 # SliTaz package receipt.
pascal@17198 2
pascal@17198 3 PACKAGE="python-whoosh"
Hans-G?nter@23584 4 VERSION="2.7.4"
pascal@17198 5 CATEGORY="development"
pascal@17198 6 SHORT_DESC="Fast full text indexing, search, and spell checking library."
pascal@17198 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17198 8 LICENSE="BSD"
Hans-G?nter@23584 9 WEB_SITE="https://pypi.python.org/pypi/Whoosh/"
Hans-G?nter@23584 10
Hans-G?nter@23584 11 SOURCE="Whoosh"
pascal@17198 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23584 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@17198 14
pascal@17198 15 DEPENDS="python"
Hans-G?nter@23584 16 BUILD_DEPENDS="python python-setuptools"
pascal@17198 17
pascal@24391 18 # What is the latest version available today?
pascal@24391 19 current_version()
pascal@24391 20 {
pascal@24391 21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
pascal@24391 22 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
pascal@24391 23 }
pascal@24391 24
pascal@17198 25 # Rules to configure and make the package.
pascal@17198 26 compile_rules()
pascal@17198 27 {
Hans-G?nter@23584 28 python setup.py build &&
pascal@17198 29 python setup.py install --root=$DESTDIR
pascal@17198 30 }
pascal@17198 31
pascal@17198 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17198 33 genpkg_rules()
pascal@17198 34 {
Hans-G?nter@23584 35 cp -a $install/* $fs
pascal@17198 36 }