wok annotate le/receipt @ rev 24475

updated dfu-util (0.9 -> 0.11)
author Hans-G?nter Theisgen
date Thu Feb 17 17:41:58 2022 +0100 (2022-02-17)
parents f68a9e7fb667
children e833ef850aaf
rev   line source
mimas@2026 1 # SliTaz package receipt.
mimas@2026 2
mimas@2026 3 PACKAGE="le"
Hans-G?nter@22996 4 VERSION="1.16.7"
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@21373 10 WEB_SITE="https://github.com/lavv17/le"
mimas@2026 11
Hans-G?nter@22996 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21373 13 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$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@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
mimas@2026 24 # Rules to configure and make the package.
mimas@2026 25 compile_rules()
mimas@2026 26 {
pascal@17670 27 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
Hans-G?nter@21373 28
Hans-G?nter@21373 29 # 1.16.5 no longer required
Hans-G?nter@21373 30 # patch -p 0 < $stuff/gcc-4.patch || return 1
Hans-G?nter@21373 31
Hans-G?nter@21373 32 ./configure \
Hans-G?nter@22996 33 CC=gcc-83 \
Hans-G?nter@22996 34 CXX=g++-83 \
Hans-G?nter@21373 35 --prefix=/usr \
Hans-G?nter@21373 36 --infodir=/usr/share/info \
Hans-G?nter@21373 37 --mandir=/usr/share/man \
pankso@4169 38 $CONFIGURE_ARGS &&
Hans-G?nter@21373 39 make -j 1 &&
pascal@15245 40 make DESTDIR=$DESTDIR install
mimas@2026 41 }
mimas@2026 42
mimas@2026 43 # Rules to gen a SliTaz package suitable for Tazpkg.
mimas@2026 44 genpkg_rules()
mimas@2026 45 {
mimas@2026 46 mkdir -p $fs/usr/share
Hans-G?nter@21373 47
Hans-G?nter@21373 48 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21373 49 cp -a $install/usr/share/le $fs/usr/share
mimas@2026 50 }