wok-backports annotate nano/receipt @ rev 48

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