wok view nano/receipt @ rev 24063
Fix sane-backends-dev
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 12 09:56:19 2021 +0000 (2021-06-12) |
parents | 0bae549e1050 |
children | ee53899c6189 |
line source
1 # SliTaz package receipt.
3 PACKAGE="nano"
4 VERSION="4.8"
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 # no longer supported in 4.2
31 # --disable-wrapping-as-root
33 ./configure \
34 --sysconfdir=/etc \
35 --localstatedir=/var \
36 --enable-utf8 \
37 $CONFIGURE_ARGS \
38 $ARCH_ARGS &&
39 make &&
40 make install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 cp -a $install/* $fs
47 rm -r $fs/usr/share/doc
48 rm -r $fs/usr/share/locale
49 rm -r $fs/usr/share/man
51 # Configuration file.
52 mkdir -p $fs/etc
53 cp $src/doc/sample.nanorc $fs/etc/nanorc
55 cd $fs
56 patch --input=$stuff/patches/nanorc.patch \
57 etc/nanorc
58 patch --input=$stuff/patches/sh.nanorc-$VERSION \
59 usr/share/nano/sh.nanorc
61 # Shrink
62 for i in $fs/usr/share/nano/*.nanorc
63 do
64 sed -i '/^#/d;/^$/d' $i
65 done
66 }