wok-next view nano/receipt @ rev 20947
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 31 11:58:18 2018 +0300 (2018-08-31) |
parents | e7a485521d6a |
children | d5aab818505e |
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="pankso@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_arm="ncurses-dev zlib-dev"
15 BUILD_DEPENDS="gettext ncurses-dev zlib-dev groff libmagic-dev"
17 SPLIT="nano-noarch"
18 COOKOPTS="!menus"
20 compile_rules() {
21 ./configure \
22 --disable-wrapping-as-root \
23 --enable-utf8 \
24 $CONFIGURE_ARGS &&
25 make &&
26 make install || exit 1
28 # Config file
29 install -Dm644 $src/doc/sample.nanorc $install/etc/nanorc
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 nano)
35 copy bin/
36 DEPENDS="libmagic ncurses zlib"
37 TAGS="text-editor"
38 SUGGESTED="gpm"
39 ;;
40 nano-noarch)
41 copy @std @rm
42 CAT="utilities|common files"
44 # Shrink
45 for i in $fs/usr/share/nano/*.nanorc; do
46 sed -i '/^#/d;/^$/d' $i
47 done
48 ;;
49 esac
50 }