wok diff nano/receipt @ rev 24007
Up zstd (1.4.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 29 15:34:50 2021 +0000 (2021-01-29) |
parents | 0bae549e1050 |
children | ee53899c6189 |
line diff
1.1 --- a/nano/receipt Fri May 03 15:42:51 2019 +0100 1.2 +++ b/nano/receipt Fri Jan 29 15:34:50 2021 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="nano" 1.7 -VERSION="4.2" 1.8 +VERSION="4.8" 1.9 CATEGORY="utilities" 1.10 TAGS="text-editor" 1.11 SHORT_DESC="Nano Text Editor." 1.12 @@ -27,12 +27,15 @@ 1.13 # Rules to configure and make the package. 1.14 compile_rules() 1.15 { 1.16 -# --disable-wrapping-as-root no longer supported in 4.2 1.17 + # no longer supported in 4.2 1.18 + # --disable-wrapping-as-root 1.19 + 1.20 ./configure \ 1.21 --sysconfdir=/etc \ 1.22 --localstatedir=/var \ 1.23 --enable-utf8 \ 1.24 - $CONFIGURE_ARGS $ARCH_ARGS && 1.25 + $CONFIGURE_ARGS \ 1.26 + $ARCH_ARGS && 1.27 make && 1.28 make install 1.29 } 1.30 @@ -40,21 +43,24 @@ 1.31 # Rules to gen a SliTaz package suitable for Tazpkg. 1.32 genpkg_rules() 1.33 { 1.34 - cp -a $install/* $fs 1.35 - rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man 1.36 + cp -a $install/* $fs 1.37 + rm -r $fs/usr/share/doc 1.38 + rm -r $fs/usr/share/locale 1.39 + rm -r $fs/usr/share/man 1.40 1.41 # Configuration file. 1.42 mkdir -p $fs/etc 1.43 - cp $src/doc/sample.nanorc $fs/etc/nanorc 1.44 + cp $src/doc/sample.nanorc $fs/etc/nanorc 1.45 1.46 cd $fs 1.47 patch --input=$stuff/patches/nanorc.patch \ 1.48 etc/nanorc 1.49 - patch --input=$stuff/patches/sh.nanorc.patch \ 1.50 + patch --input=$stuff/patches/sh.nanorc-$VERSION \ 1.51 usr/share/nano/sh.nanorc 1.52 1.53 # Shrink 1.54 - for i in $fs/usr/share/nano/*.nanorc; do 1.55 + for i in $fs/usr/share/nano/*.nanorc 1.56 + do 1.57 sed -i '/^#/d;/^$/d' $i 1.58 done 1.59 }