wok annotate nano/receipt @ rev 19479

paper-icon-theme: update from git, make package a way smaller (remove HiDPI icons and shrink svg icons)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 01 04:02:18 2016 +0200 (2016-11-01)
parents fad135abce3c
children cb1c44991845
rev   line source
pankso@19 1 # SliTaz package receipt.
pankso@19 2
pankso@19 3 PACKAGE="nano"
al@19240 4 VERSION="2.6.1"
pankso@201 5 CATEGORY="utilities"
al@19241 6 SHORT_DESC="Nano Text Editor"
pankso@19 7 MAINTAINER="pankso@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
al@19240 9 WEB_SITE="https://nano-editor.org/"
pankso@9675 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@17862 11 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
pankso@9675 12 TAGS="text-editor"
pankso@12837 13 HOST_ARCH="i486 arm"
pankso@9675 14
al@17862 15 DEPENDS="ncursesw zlib"
al@14334 16 SUGGESTED="gpm"
al@17862 17 BUILD_DEPENDS="ncursesw-dev zlib-dev groff"
al@19259 18 SPLIT="nano-doc"
pankso@19 19
pascal@19115 20 # Handle cross compilation
pascal@19115 21 case "$ARCH" in
pascal@19115 22 arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;;
pascal@19115 23 esac
pascal@19115 24
pankso@19 25 # Rules to configure and make the package.
pankso@19 26 compile_rules()
pankso@19 27 {
al@14334 28 ./configure \
al@14334 29 --sysconfdir=/etc \
al@14334 30 --localstatedir=/var \
al@19240 31 --disable-wrapping-as-root \
pankso@16334 32 --enable-utf8 \
pankso@16079 33 $CONFIGURE_ARGS $ARCH_ARGS &&
pankso@16079 34 make && make install
pankso@19 35 }
pankso@19 36
pankso@19 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@19 38 genpkg_rules()
pankso@19 39 {
al@19240 40 cp -a $install/* $fs
al@19259 41 rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man
al@17862 42
pankso@9675 43 # Config file.
al@19240 44 mkdir -p $fs/etc
al@17862 45 cp $src/doc/nanorc.sample $fs/etc/nanorc
al@17862 46 cd $fs; patch -p0 < $stuff/nano.patch
al@19259 47
al@19259 48 # Shrink
al@19259 49 for i in $fs/usr/share/nano/*.nanorc; do
al@19259 50 sed -i '/^#/d;/^$/d' $i
al@19259 51 done
pankso@19 52 }