wok view nano/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 661d5b83f2a3 |
children |
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/"
11 WEB_SITE="https://git.savannah.gnu.org/cgit/nano.git"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
16 SUGGESTED="gpm nano-doc nano-lang"
17 DEPENDS="ncursesw zlib"
18 BUILD_DEPENDS="groff ncursesw-dev patch zlib-dev"
19 SPLIT="nano-doc nano-lang"
21 HOST_ARCH="i486 arm"
23 # Handle cross compilation
24 case "$ARCH" in
25 arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;;
26 esac
28 # What is the latest version available today?
29 current_version()
30 {
31 wget -O - https://ftp.gnu.org/gnu/$PACKAGE/ 2>/dev/null | \
32 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
33 }
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 # no longer supported in 4.2
39 # --disable-wrapping-as-root
41 ./configure \
42 --sysconfdir=/etc \
43 --localstatedir=/var \
44 --enable-utf8 \
45 --disable-libmagic \
46 $CONFIGURE_ARGS \
47 $ARCH_ARGS &&
48 make &&
49 make install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 cp -a $install/* $fs
56 rm -r $fs/usr/share/doc
57 rm -r $fs/usr/share/locale
58 rm -r $fs/usr/share/man
60 # Configuration file.
61 mkdir -p $fs/etc
62 cp $src/doc/sample.nanorc $fs/etc/nanorc
64 cd $fs
65 patch --input=$stuff/patches/etc_nanorc-$VERSION \
66 etc/nanorc
67 patch --input=$stuff/patches/usr_share_nano_sh.nanorc-$VERSION \
68 usr/share/nano/sh.nanorc
70 # Shrink (delete comment lines and empty lines)
71 for i in $fs/usr/share/nano/*.nanorc
72 do
73 sed -i '/^#/d;/^$/d' $i
74 done
75 }