wok annotate hg-git/receipt @ rev 25500
new default version for java8-jre
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 30 10:14:12 2022 +0100 (22 months ago) |
parents | 104a2a2e5484 |
children |
rev | line source |
---|---|
pascal@14379 | 1 # SliTaz package receipt. |
pascal@14379 | 2 |
pascal@14379 | 3 PACKAGE="hg-git" |
Hans-G?nter@24643 | 4 VERSION="0.10.4" |
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 |
Hans-G?nter@24643 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24643 | 12 WGET_URL="https://files.pythonhosted.org/packages/source/h/hg-git/$TARBALL" |
pascal@14379 | 13 |
Hans-G?nter@24643 | 14 DEPENDS="mercurial dulwich 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 } |