wok-next annotate nano/receipt @ rev 21044

Change tags a bit
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 24 12:56:54 2018 +0200 (2018-11-24)
parents 5fac1a2da249
children
rev   line source
al@20443 1 # SliTaz package receipt v2.
pankso@19 2
pankso@19 3 PACKAGE="nano"
al@20905 4 VERSION="2.9.8"
pankso@201 5 CATEGORY="utilities"
al@19241 6 SHORT_DESC="Nano Text Editor"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
al@19240 9 WEB_SITE="https://nano-editor.org/"
pankso@9675 10
al@19693 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19693 12 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
al@19693 13
al@21020 14 BUILD_DEPENDS="gettext-dev ncurses-dev zlib-dev groff libmagic-dev"
pankso@19 15
al@21020 16 SPLIT="$PACKAGE-noarch"
al@20947 17 COOKOPTS="!menus"
al@20947 18
al@20443 19 compile_rules() {
al@14334 20 ./configure \
al@19240 21 --disable-wrapping-as-root \
pankso@16334 22 --enable-utf8 \
al@20534 23 $CONFIGURE_ARGS &&
al@20905 24 make &&
al@21020 25 make install || return 1
al@19693 26
al@20905 27 # Config file
al@20905 28 install -Dm644 $src/doc/sample.nanorc $install/etc/nanorc
pankso@19 29 }
pankso@19 30
al@20443 31 genpkg_rules() {
al@20947 32 case $PACKAGE in
al@20947 33 nano)
al@20947 34 copy bin/
al@20947 35 DEPENDS="libmagic ncurses zlib"
al@20947 36 TAGS="text-editor"
al@20947 37 SUGGESTED="gpm"
al@20947 38 ;;
al@20947 39 nano-noarch)
al@20947 40 copy @std @rm
al@20947 41 CAT="utilities|common files"
al@19259 42
al@20947 43 # Shrink
al@20947 44 for i in $fs/usr/share/nano/*.nanorc; do
al@20947 45 sed -i '/^#/d;/^$/d' $i
al@20947 46 done
al@20947 47 ;;
al@20947 48 esac
pankso@19 49 }