wok annotate python-ofxparse/receipt @ rev 24391

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 18:01:05 2022 +0000 (2022-02-07)
parents b3a4144020fb
children 6ddf40c200c8
rev   line source
pascal@17958 1 # SliTaz package receipt.
pascal@17958 2
pascal@17958 3 PACKAGE="python-ofxparse"
Hans-G?nter@23518 4 VERSION="0.20"
pascal@17958 5 CATEGORY="development"
pascal@17958 6 SHORT_DESC="Tools for working with the OFX (Open Financial Exchange) file format."
pascal@17958 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17958 8 LICENSE="MIT"
Hans-G?nter@23518 9 WEB_SITE="https://pypi.python.org/pypi/ofxparse"
Hans-G?nter@23518 10
Hans-G?nter@23518 11 SOURCE="ofxparse"
pascal@17958 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23518 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@17958 14
Hans-G?nter@23518 15 DEPENDS="beautifulsoup python"
pascal@21582 16 BUILD_DEPENDS="python python-setuptools"
pascal@17958 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@17958 25 # Rules to configure and make the package.
pascal@17958 26 compile_rules()
pascal@17958 27 {
pascal@17958 28 python setup.py install --root=$DESTDIR
pascal@17958 29 }
pascal@17958 30
pascal@17958 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17958 32 genpkg_rules()
pascal@17958 33 {
Hans-G?nter@23518 34 cp -a $install/usr $fs
pascal@17958 35 }