wok-next view nano/receipt @ rev 20457

Tiny edits
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 11:13:24 2018 +0200 (2018-03-02)
parents 6c12ac1293fc
children 757d032c55c7
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 --sysconfdir=/etc \
20 --localstatedir=/var \
21 --disable-wrapping-as-root \
22 --enable-utf8 \
23 $CONFIGURE_ARGS $ARCH_ARGS &&
24 make && make install || exit 1
26 # Config file.
27 mkdir -p $install/etc
28 cp $src/doc/nanorc.sample $install/etc/nanorc
30 install -v -m644 doc/texinfo/nano.html $install/usr/share/doc/nano-$VERSION
31 }
33 genpkg_rules() {
34 copy etc/ bin/ nano/
36 # Shrink
37 for i in $fs/usr/share/nano/*.nanorc; do
38 sed -i '/^#/d;/^$/d' $i
39 done
40 DEPENDS="libmagic ncurses zlib"
41 TAGS="text-editor"
42 SUGGESTED="gpm"
43 }