wok view nano/receipt @ rev 16268

ARM: add libsexy libsndfile
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 05 20:04:34 2014 +0200 (2014-04-05)
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 }