# HG changeset patch # User Aleksej Bobylev # Date 1467542850 -10800 # Node ID fad135abce3c0370d960bb87b8796602e2292839 # Parent a75fc1dac50c8a84f811f2030cd1f7fcfbccfa1e nano: split nano-doc with man pages and docs, shrink *.nanorc files (-9KB uncompressed) diff -r a75fc1dac50c -r fad135abce3c nano-doc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nano-doc/receipt Sun Jul 03 13:47:30 2016 +0300 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="nano-doc" +VERSION="2.6.1" +CATEGORY="doc" +SHORT_DESC="Nano Text Editor, documentation and man pages" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="GPL3" +WEB_SITE="https://nano-editor.org/" + +WANTED="nano" + +genpkg_rules() +{ + mkdir -p $fs/usr/share + cp -a $install/usr/share/doc $install/usr/share/man $fs/usr/share +} diff -r a75fc1dac50c -r fad135abce3c nano/receipt --- a/nano/receipt Sun Jul 03 10:58:40 2016 +0200 +++ b/nano/receipt Sun Jul 03 13:47:30 2016 +0300 @@ -15,6 +15,7 @@ DEPENDS="ncursesw zlib" SUGGESTED="gpm" BUILD_DEPENDS="ncursesw-dev zlib-dev groff" +SPLIT="nano-doc" # Handle cross compilation case "$ARCH" in @@ -32,17 +33,22 @@ $CONFIGURE_ARGS $ARCH_ARGS && make && make install - find $install/usr/share/man -type f -exec gzip -9 \{\} \; + cook_compress_manpages } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs - rm -r $fs/usr/share/doc $fs/usr/share/locale + rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man # Config file. mkdir -p $fs/etc cp $src/doc/nanorc.sample $fs/etc/nanorc cd $fs; patch -p0 < $stuff/nano.patch + + # Shrink + for i in $fs/usr/share/nano/*.nanorc; do + sed -i '/^#/d;/^$/d' $i + done }