wok view le/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (10 months ago)
parents e833ef850aaf
children
line source
1 # SliTaz package receipt.
3 PACKAGE="le"
4 VERSION="1.16.8"
5 CATEGORY="utilities"
6 TAGS="text-editor"
7 SHORT_DESC="Small editor using ncurses."
8 MAINTAINER="mimas@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://lav.yar.ru/programs.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://lav.yar.ru/download/$PACKAGE/$TARBALL"
15 DEPENDS="gcc83-lib-base ncurses"
16 BUILD_DEPENDS="gcc83 ncurses-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/le\/le-/!d;s|.*le-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
30 # 1.16.5 no longer required
31 # patch -p 0 < $stuff/gcc-4.patch || return 1
33 ./configure \
34 CC=gcc-83 \
35 CXX=g++-83 \
36 --prefix=/usr \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make &&
41 make install DESTDIR=$DESTDIR
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/share/le $fs/usr/share
51 }