wok view nano/receipt @ rev 16177

8086tiny: nasm is native, do not use it
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 30 16:34:03 2014 +0000 (2014-03-30)
parents 2b9f96603415
children fd7c7b825eb9
line source
1 # SliTaz package receipt.
3 PACKAGE="nano"
4 VERSION="2.2.6"
5 CATEGORY="utilities"
6 SHORT_DESC="GNU Nano Text Editor"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.nano-editor.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="${WEB_SITE}dist/v2.2/$TARBALL"
12 TAGS="text-editor"
13 HOST_ARCH="i486 arm"
15 TRACKER="http://sourcewell.berlios.de/appbyid.php?id=1733"
16 VERSION_NOTE="latest stable"
18 DEPENDS="ncursesw"
19 SUGGESTED="gpm"
20 BUILD_DEPENDS="ncursesw-dev"
22 # Handle cross compilation
23 case "$ARCH" in
24 arm)
25 export LDFLAGS="-L/usr/cross/arm/lib -L/usr/cross/arm/usr/lib"
26 BUILD_DEPENDS="ncurses-dev";;
27 i?86) ARCH_ARGS="--enable-utf8" ;;
28 esac
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 --sysconfdir=/etc \
35 --localstatedir=/var \
36 $CONFIGURE_ARGS $ARCH_ARGS &&
37 make && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p \
44 $fs/etc \
45 $fs/usr/share
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/share/nano $fs/usr/share
48 # Config file.
49 cp $stuff/nanorc $fs/etc
50 }