wok-6.x view ytree/receipt @ rev 24403

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 08 18:20:23 2022 +0000 (2022-02-08)
parents 4a3bea9ac536
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ytree"
4 VERSION="2.02"
5 CATEGORY="utilities"
6 TAGS="file-manager"
7 SHORT_DESC="A curses-based file manager."
8 MAINTAINER="allan316@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.han.de/~werner/ytree.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://www.han.de/~werner/$TARBALL"
15 DEPENDS="ncursesw"
16 BUILD_DEPENDS="ncursesw-dev"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | \
24 sed '/New in/!d;s|.*in ||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Dont use readline && utf-8 support via ncursesw && -0s to save ~10kb :-)
31 sed -i \
32 -e s"/CFLAGS.*/CFLAGS = -D_GNU_SOURCE -DWITH_UTF8 -Os -DCOLOR_SUPPORT/" \
33 -e s"/-lncurses -lreadline/-lncursesw/" \
34 Makefile &&
35 make
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin
42 cp -a $src/ytree $fs/usr/bin
43 }