wok-6.x view nano/receipt @ rev 22622

updated cups-pdf again (2.6.1 -> 3.0.1)
author Hans-G?nter Theisgen
date Sun Jan 12 15:46:59 2020 +0100 (2020-01-12)
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 }