wok-next view nano/receipt @ rev 20130
xget, zsnes: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Oct 31 13:23:41 2017 +0100 (2017-10-31) |
parents | f463de72afe3 |
children | 0e7893ac206d |
line source
1 # SliTaz package receipt.
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/"
10 TAGS="text-editor"
11 HOST_ARCH="i486 arm"
12 SUGGESTED="gpm"
14 TARBALL="$PACKAGE-$VERSION.tar.xz"
15 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
17 DEPENDS="ncurses zlib"
18 BUILD_DEPENDS="gettext ncurses-dev zlib-dev groff"
19 BUILD_DEPENDS_arm="ncurses-dev zlib-dev"
21 # Handle cross compilation
22 case "$ARCH" in
23 arm*) BUILD_DEPENDS=$BUILD_DEPENDS_arm ;;
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 while read i; do patch -p1 -i $stuff/patches/$i; done < $stuff/patches/series
31 ./configure \
32 --sysconfdir=/etc \
33 --localstatedir=/var \
34 --docdir=/usr/share/doc/nano-$VERSION \
35 --disable-wrapping-as-root \
36 --enable-utf8 \
37 $CONFIGURE_ARGS $ARCH_ARGS &&
38 make && make install || exit 1
40 # Config file.
41 mkdir -p $install/etc
42 cp $src/doc/nanorc.sample $install/etc/nanorc
44 install -v -m644 doc/texinfo/nano.html $install/usr/share/doc/nano-$VERSION
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 copy etc/ bin/ nano/
52 # Shrink
53 for i in $fs/usr/share/nano/*.nanorc; do
54 sed -i '/^#/d;/^$/d' $i
55 done
56 }