wok view tree/receipt @ rev 24336

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 28 18:19:21 2022 +0000 (2022-01-28)
parents 804a303f31dc
children fb22330086d8
line source
1 # SliTaz package receipt.
3 PACKAGE="tree"
4 VERSION="1.8.0"
5 CATEGORY="utilities"
6 SHORT_DESC="Recursive directory listing program."
7 MAINTAINER="MikeDSmith25@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/pyr/tree"
11 TARBALL="$PACKAGE-$VERSION.tgz"
12 WGET_URL="ftp://mama.indstate.edu/linux/tree/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE/tags 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 make &&
25 make install \
26 BINDIR=$DESTDIR/usr/bin \
27 MANDIR=$DESTDIR/usr/share/man
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $install/usr/bin $fs/usr
35 }