wok-next view nano/receipt @ rev 21636
updated f3 (2.2 -> 7.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 26 11:11:30 2020 +0100 (2020-06-26) |
parents | 5fac1a2da249 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="nano"
4 VERSION="2.9.8"
5 CATEGORY="utilities"
6 SHORT_DESC="Nano Text Editor"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://nano-editor.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
14 BUILD_DEPENDS="gettext-dev ncurses-dev zlib-dev groff libmagic-dev"
16 SPLIT="$PACKAGE-noarch"
17 COOKOPTS="!menus"
19 compile_rules() {
20 ./configure \
21 --disable-wrapping-as-root \
22 --enable-utf8 \
23 $CONFIGURE_ARGS &&
24 make &&
25 make install || return 1
27 # Config file
28 install -Dm644 $src/doc/sample.nanorc $install/etc/nanorc
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 nano)
34 copy bin/
35 DEPENDS="libmagic ncurses zlib"
36 TAGS="text-editor"
37 SUGGESTED="gpm"
38 ;;
39 nano-noarch)
40 copy @std @rm
41 CAT="utilities|common files"
43 # Shrink
44 for i in $fs/usr/share/nano/*.nanorc; do
45 sed -i '/^#/d;/^$/d' $i
46 done
47 ;;
48 esac
49 }