wok-next view nano/receipt @ rev 19264
Compress manpages (in $install/usr/share/man/...)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 04 00:54:49 2016 +0300 (2016-07-04) |
parents | c9028f74aaec |
children | 11b5e93cb5f2 |
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
36 cook_compress_manpages
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cp -a $install/* $fs
43 rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man
45 # Config file.
46 mkdir -p $fs/etc
47 cp $src/doc/nanorc.sample $fs/etc/nanorc
48 cd $fs; patch -p0 < $stuff/nano.patch
50 # Shrink
51 for i in $fs/usr/share/nano/*.nanorc; do
52 sed -i '/^#/d;/^$/d' $i
53 done
54 }