wok annotate tree/receipt @ rev 25603

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 18 11:43:32 2023 +0000 (11 months ago)
parents 0456ac2803aa
children 1e09c4c56491
rev   line source
MikeDSmith25@1401 1 # SliTaz package receipt.
MikeDSmith25@1401 2
MikeDSmith25@1401 3 PACKAGE="tree"
Hans-G?nter@25373 4 VERSION="2.0.2"
MikeDSmith25@1401 5 CATEGORY="utilities"
Hans-G?nter@22051 6 SHORT_DESC="Recursive directory listing program."
MikeDSmith25@1401 7 MAINTAINER="MikeDSmith25@gmail.com"
pascal@15590 8 LICENSE="GPL2"
pascal@22385 9 WEB_SITE="https://github.com/pyr/tree"
Hans-G?nter@25373 10 REPOLOGY="tree-steve-baker"
Hans-G?nter@22051 11
MikeDSmith25@1401 12 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@24976 13 WGET_URL="https://gitlab.com/OldManProgrammer/unix-tree/-/archive/$VERSION/unix-tree-$VERSION.tar.gz"
MikeDSmith25@1401 14
Hans-G?nter@25373 15 DEPENDS="gcc83-lib-base"
Hans-G?nter@25373 16 BUILD_DEPENDS="gcc83"
Hans-G?nter@25373 17
pascal@24326 18 # What is the latest version available today?
pascal@24326 19 current_version()
pascal@24326 20 {
pascal@25603 21 wget -O - $WEB_SITE/tags 2>/dev/null | \
pascal@25603 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24326 23 }
pascal@24326 24
MikeDSmith25@1401 25 # Rules to configure and make the package.
MikeDSmith25@1401 26 compile_rules()
MikeDSmith25@1401 27 {
Hans-G?nter@25373 28 make CC=gcc-83 CXX=g++-83 &&
Hans-G?nter@22051 29 make install \
Hans-G?nter@22051 30 BINDIR=$DESTDIR/usr/bin \
Hans-G?nter@22051 31 MANDIR=$DESTDIR/usr/share/man
MikeDSmith25@1401 32 }
MikeDSmith25@1401 33
MikeDSmith25@1401 34 # Rules to gen a SliTaz package suitable for Tazpkg.
MikeDSmith25@1401 35 genpkg_rules()
MikeDSmith25@1401 36 {
Hans-G?nter@25373 37 mkdir -p $fs/usr/bin
Hans-G?nter@25373 38 cp -a $src/tree $fs/usr/bin
MikeDSmith25@1401 39 }