wok view nano/receipt @ rev 25734
updated sc-im (-> 0.8.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 22 14:48:42 2024 +0100 (4 months ago) |
parents | a92b20152ab0 |
children | 455748513a4c |
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://www.nano-editor.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$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 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - https://ftp.gnu.org/gnu/$PACKAGE/ 2>/dev/null | \
31 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 # no longer supported in 4.2
38 # --disable-wrapping-as-root
40 ./configure \
41 --sysconfdir=/etc \
42 --localstatedir=/var \
43 --enable-utf8 \
44 --disable-libmagic \
45 $CONFIGURE_ARGS \
46 $ARCH_ARGS &&
47 make &&
48 make install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 cp -a $install/* $fs
55 rm -r $fs/usr/share/doc
56 rm -r $fs/usr/share/locale
57 rm -r $fs/usr/share/man
59 # Configuration file.
60 mkdir -p $fs/etc
61 cp $src/doc/sample.nanorc $fs/etc/nanorc
63 cd $fs
64 patch --input=$stuff/patches/etc_nanorc-$VERSION \
65 etc/nanorc
66 patch --input=$stuff/patches/usr_share_nano_sh.nanorc-$VERSION \
67 usr/share/nano/sh.nanorc
69 # Shrink (delete comment lines and empty lines)
70 for i in $fs/usr/share/nano/*.nanorc
71 do
72 sed -i '/^#/d;/^$/d' $i
73 done
74 }