wok-next view nano/receipt @ rev 20534

Clean default configure options when site script used.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 30 19:31:50 2018 +0300 (2018-03-30)
parents 0e7893ac206d
children e7a485521d6a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="nano"
4 VERSION="2.6.3"
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 compile_rules() {
18 ./configure \
19 --disable-wrapping-as-root \
20 --enable-utf8 \
21 $CONFIGURE_ARGS &&
22 make && make install || exit 1
24 # Config file.
25 install -Dm644 $src/doc/nanorc.sample $install/etc/nanorc
27 cook_pick_docs doc/texinfo/nano.html
28 }
30 genpkg_rules() {
31 copy etc/ bin/ nano/
33 # Shrink
34 for i in $fs/usr/share/nano/*.nanorc; do
35 sed -i '/^#/d;/^$/d' $i
36 done
37 DEPENDS="libmagic ncurses zlib"
38 TAGS="text-editor"
39 SUGGESTED="gpm"
40 }