wok annotate nano/receipt @ rev 25599

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 13:38:12 2023 +0000 (17 months ago)
parents ee53899c6189
children a92b20152ab0
rev   line source
pankso@19 1 # SliTaz package receipt.
pankso@19 2
pankso@19 3 PACKAGE="nano"
Hans-G?nter@24955 4 VERSION="6.2"
pankso@201 5 CATEGORY="utilities"
Hans-G?nter@21517 6 TAGS="text-editor"
Hans-G?nter@21517 7 SHORT_DESC="Nano Text Editor."
pankso@19 8 MAINTAINER="pankso@slitaz.org"
pascal@14999 9 LICENSE="GPL3"
al@19240 10 WEB_SITE="https://nano-editor.org/"
Hans-G?nter@21517 11
pankso@9675 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@17862 13 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
Hans-G?nter@21517 14
Hans-G?nter@24955 15 SUGGESTED="gpm nano-doc nano-lang"
Hans-G?nter@21517 16 DEPENDS="ncursesw zlib"
Hans-G?nter@24955 17 BUILD_DEPENDS="groff ncursesw-dev patch zlib-dev"
Hans-G?nter@24955 18 SPLIT="nano-doc nano-lang"
Hans-G?nter@21517 19
pankso@12837 20 HOST_ARCH="i486 arm"
pankso@9675 21
pascal@19115 22 # Handle cross compilation
pascal@19115 23 case "$ARCH" in
pascal@19115 24 arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;;
pascal@19115 25 esac
pascal@19115 26
pascal@24071 27 current_version()
pascal@24071 28 {
pascal@24071 29 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24071 30 sed '/^[0-9]/!d;s|&.*||;q'
pascal@24071 31 }
pascal@24071 32
pankso@19 33 # Rules to configure and make the package.
pankso@19 34 compile_rules()
pankso@19 35 {
Hans-G?nter@23227 36 # no longer supported in 4.2
Hans-G?nter@23227 37 # --disable-wrapping-as-root
Hans-G?nter@23227 38
Hans-G?nter@21517 39 ./configure \
Hans-G?nter@21517 40 --sysconfdir=/etc \
Hans-G?nter@21517 41 --localstatedir=/var \
Hans-G?nter@21517 42 --enable-utf8 \
Hans-G?nter@23227 43 $CONFIGURE_ARGS \
Hans-G?nter@23227 44 $ARCH_ARGS &&
Hans-G?nter@21517 45 make &&
Hans-G?nter@21517 46 make install
pankso@19 47 }
pankso@19 48
pankso@19 49 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@19 50 genpkg_rules()
pankso@19 51 {
Hans-G?nter@23227 52 cp -a $install/* $fs
Hans-G?nter@23227 53 rm -r $fs/usr/share/doc
Hans-G?nter@23227 54 rm -r $fs/usr/share/locale
Hans-G?nter@23227 55 rm -r $fs/usr/share/man
al@17862 56
Hans-G?nter@21517 57 # Configuration file.
al@19240 58 mkdir -p $fs/etc
Hans-G?nter@23227 59 cp $src/doc/sample.nanorc $fs/etc/nanorc
Hans-G?nter@21517 60
Hans-G?nter@21517 61 cd $fs
Hans-G?nter@24955 62 patch --input=$stuff/patches/etc_nanorc-$VERSION \
Hans-G?nter@21517 63 etc/nanorc
Hans-G?nter@24955 64 patch --input=$stuff/patches/usr_share_nano_sh.nanorc-$VERSION \
Hans-G?nter@21517 65 usr/share/nano/sh.nanorc
al@19259 66
Hans-G?nter@24955 67 # Shrink (delete comment lines and empty lines)
Hans-G?nter@23227 68 for i in $fs/usr/share/nano/*.nanorc
Hans-G?nter@23227 69 do
al@19259 70 sed -i '/^#/d;/^$/d' $i
Hans-G?nter@24955 71 done
pankso@19 72 }