wok-current rev 19259

nano: split nano-doc with man pages and docs, shrink *.nanorc files (-9KB uncompressed)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jul 03 13:47:30 2016 +0300 (2016-07-03)
parents a75fc1dac50c
children 9e22f94d49de
files nano-doc/receipt nano/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/nano-doc/receipt	Sun Jul 03 13:47:30 2016 +0300
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="nano-doc"
     1.7 +VERSION="2.6.1"
     1.8 +CATEGORY="doc"
     1.9 +SHORT_DESC="Nano Text Editor, documentation and man pages"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="GPL3"
    1.12 +WEB_SITE="https://nano-editor.org/"
    1.13 +
    1.14 +WANTED="nano"
    1.15 +
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/share
    1.19 +	cp -a $install/usr/share/doc $install/usr/share/man $fs/usr/share
    1.20 +}
     2.1 --- a/nano/receipt	Sun Jul 03 10:58:40 2016 +0200
     2.2 +++ b/nano/receipt	Sun Jul 03 13:47:30 2016 +0300
     2.3 @@ -15,6 +15,7 @@
     2.4  DEPENDS="ncursesw zlib"
     2.5  SUGGESTED="gpm"
     2.6  BUILD_DEPENDS="ncursesw-dev zlib-dev groff"
     2.7 +SPLIT="nano-doc"
     2.8  
     2.9  # Handle cross compilation
    2.10  case "$ARCH" in
    2.11 @@ -32,17 +33,22 @@
    2.12  		$CONFIGURE_ARGS $ARCH_ARGS &&
    2.13  	make && make install
    2.14  
    2.15 -	find $install/usr/share/man -type f -exec gzip -9 \{\} \;
    2.16 +	cook_compress_manpages
    2.17  }
    2.18  
    2.19  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.20  genpkg_rules()
    2.21  {
    2.22  	cp -a $install/* $fs
    2.23 -	rm -r $fs/usr/share/doc $fs/usr/share/locale
    2.24 +	rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man
    2.25  
    2.26  	# Config file.
    2.27  	mkdir -p $fs/etc
    2.28  	cp $src/doc/nanorc.sample $fs/etc/nanorc
    2.29  	cd $fs; patch -p0 < $stuff/nano.patch
    2.30 +
    2.31 +	# Shrink
    2.32 +	for i in $fs/usr/share/nano/*.nanorc; do
    2.33 +		sed -i '/^#/d;/^$/d' $i
    2.34 +	done
    2.35  }