wok annotate hg-git/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 31b8e9d2cab1
children 9290e8ef0479
rev   line source
pascal@14379 1 # SliTaz package receipt.
pascal@14379 2
pascal@14379 3 PACKAGE="hg-git"
Hans-G?nter@22929 4 VERSION="0.8.13"
pascal@14379 5 CATEGORY="misc"
pascal@14379 6 SHORT_DESC="Git plugin for mercurial."
pascal@14379 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@20672 9 WEB_SITE="https://pypi.org/project/$PACKAGE/"
Hans-G?nter@22929 10
pascal@14379 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@14379 12 WGET_URL="https://bitbucket.org/durin42/$PACKAGE/get/$VERSION.tar.bz2"
pascal@14379 13
Hans-G?nter@22929 14 DEPENDS="dulwich mercurial python"
Hans-G?nter@22929 15 BUILD_DEPENDS="python-dev"
pascal@14379 16
pascal@24391 17 # What is the latest version available today?
pascal@24391 18 current_version()
pascal@24391 19 {
pascal@24391 20 wget -O - https://pypi.org/project/$PACKAGE/ 2>/dev/null | \
pascal@24391 21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||;q"
pascal@24391 22 }
pascal@24391 23
pascal@14379 24 # Rules to configure and make the package.
pascal@14379 25 compile_rules()
pascal@14379 26 {
pascal@14379 27 python setup.py install --root=$DESTDIR --prefix=/usr
pascal@14379 28 }
pascal@14379 29
pascal@14379 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14379 31 genpkg_rules()
pascal@14379 32 {
Hans-G?nter@22929 33 cp -a $install/* $fs
pascal@14379 34 }