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