wok annotate ranger/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 524e4a00f32e
children ac8ca9758df1
rev   line source
pascal@11564 1 # SliTaz package receipt.
pascal@11564 2
pascal@11564 3 PACKAGE="ranger"
Hans-G?nter@23606 4 VERSION="1.9.3"
pascal@11564 5 CATEGORY="utilities"
Hans-G?nter@21828 6 TAGS="file-manager"
pascal@11564 7 SHORT_DESC="File manager."
pascal@11564 8 MAINTAINER="paul@slitaz.org"
pascal@14999 9 LICENSE="GPL3"
Hans-G?nter@21828 10 WEB_SITE="https://ranger.github.io/"
Hans-G?nter@21828 11
pascal@11564 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21828 13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz"
pascal@11564 14
pascal@14999 15 DEPENDS="python"
pascal@14999 16 BUILD_DEPENDS="python python-dev"
pascal@14999 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
pascal@11564 24 # Rules to configure and make the package.
pascal@11564 25 compile_rules()
pascal@11564 26 {
paul@13432 27 python setup.py install --root=$DESTDIR
pascal@11564 28 }
pascal@11564 29
pascal@11564 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11564 31 genpkg_rules()
pascal@11564 32 {
Hans-G?nter@23606 33 cp -a $install/usr $fs
Hans-G?nter@23606 34
paul@16113 35 # remove stuff
Hans-G?nter@23606 36 rm -rf $fs/usr/share/man
pascal@11564 37 }