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

palemoon: change sqlite version
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Aug 18 16:53:29 2016 +0200 (2016-08-18)
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 }