wok-current view nano/receipt @ rev 25268

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