wok view nano/receipt @ rev 21656
updated p910nd (0.95 -> 0.97)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 31 15:41:03 2019 +0100 (2019-05-31) |
parents | cb1c44991845 |
children | 84e8c7b07160 |
line source
1 # SliTaz package receipt.
3 PACKAGE="nano"
4 VERSION="4.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"
16 DEPENDS="ncursesw zlib"
17 BUILD_DEPENDS="groff ncursesw-dev zlib-dev"
18 SPLIT="nano-doc"
20 HOST_ARCH="i486 arm"
22 # Handle cross compilation
23 case "$ARCH" in
24 arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # --disable-wrapping-as-root no longer supported in 4.2
31 ./configure \
32 --sysconfdir=/etc \
33 --localstatedir=/var \
34 --enable-utf8 \
35 $CONFIGURE_ARGS $ARCH_ARGS &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/* $fs
44 rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man
46 # Configuration file.
47 mkdir -p $fs/etc
48 cp $src/doc/sample.nanorc $fs/etc/nanorc
50 cd $fs
51 patch --input=$stuff/patches/nanorc.patch \
52 etc/nanorc
53 patch --input=$stuff/patches/sh.nanorc.patch \
54 usr/share/nano/sh.nanorc
56 # Shrink
57 for i in $fs/usr/share/nano/*.nanorc; do
58 sed -i '/^#/d;/^$/d' $i
59 done
60 }