wok-current view nano/receipt @ rev 19310

Up cacerts (20160512)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 11 21:34:51 2016 +0300 (2016-07-11)
parents fad135abce3c
children cb1c44991845
line source
1 # SliTaz package receipt.
3 PACKAGE="nano"
4 VERSION="2.6.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Nano Text Editor"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://nano-editor.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
12 TAGS="text-editor"
13 HOST_ARCH="i486 arm"
15 DEPENDS="ncursesw zlib"
16 SUGGESTED="gpm"
17 BUILD_DEPENDS="ncursesw-dev zlib-dev groff"
18 SPLIT="nano-doc"
20 # Handle cross compilation
21 case "$ARCH" in
22 arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --sysconfdir=/etc \
30 --localstatedir=/var \
31 --disable-wrapping-as-root \
32 --enable-utf8 \
33 $CONFIGURE_ARGS $ARCH_ARGS &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/* $fs
41 rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man
43 # Config file.
44 mkdir -p $fs/etc
45 cp $src/doc/nanorc.sample $fs/etc/nanorc
46 cd $fs; patch -p0 < $stuff/nano.patch
48 # Shrink
49 for i in $fs/usr/share/nano/*.nanorc; do
50 sed -i '/^#/d;/^$/d' $i
51 done
52 }