wok-next annotate nano/receipt @ rev 19115
tk, nano, htop, gawk: fix arm build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 07 15:28:14 2016 +0200 (2016-05-07) |
parents | 6fa921084d5e |
children | 80053dcc1c1d |
rev | line source |
---|---|
pankso@19 | 1 # SliTaz package receipt. |
pankso@19 | 2 |
pankso@19 | 3 PACKAGE="nano" |
psychomaniak@18649 | 4 VERSION="2.4.3" |
pankso@201 | 5 CATEGORY="utilities" |
al@14334 | 6 SHORT_DESC="GNU Nano Text Editor" |
pankso@19 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@14334 | 9 WEB_SITE="http://www.nano-editor.org/" |
pankso@9675 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@17862 | 11 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL" |
pankso@9675 | 12 TAGS="text-editor" |
pankso@12837 | 13 HOST_ARCH="i486 arm" |
pankso@9675 | 14 |
al@17862 | 15 DEPENDS="ncursesw zlib" |
al@14334 | 16 SUGGESTED="gpm" |
al@17862 | 17 BUILD_DEPENDS="ncursesw-dev zlib-dev groff" |
pankso@19 | 18 |
pascal@19115 | 19 # Handle cross compilation |
pascal@19115 | 20 case "$ARCH" in |
pascal@19115 | 21 arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;; |
pascal@19115 | 22 esac |
pascal@19115 | 23 |
pankso@19 | 24 # Rules to configure and make the package. |
pankso@19 | 25 compile_rules() |
pankso@19 | 26 { |
al@14334 | 27 ./configure \ |
al@14334 | 28 --sysconfdir=/etc \ |
al@14334 | 29 --localstatedir=/var \ |
pankso@16334 | 30 --enable-utf8 \ |
pankso@16079 | 31 $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@16079 | 32 make && make install |
pankso@19 | 33 } |
pankso@19 | 34 |
pankso@19 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@19 | 36 genpkg_rules() |
pankso@19 | 37 { |
al@14334 | 38 mkdir -p \ |
al@14334 | 39 $fs/etc \ |
al@14334 | 40 $fs/usr/share |
pankso@12837 | 41 cp -a $install/usr/bin $fs/usr |
pankso@12837 | 42 cp -a $install/usr/share/nano $fs/usr/share |
al@17862 | 43 |
pankso@9675 | 44 # Config file. |
al@17862 | 45 cp $src/doc/nanorc.sample $fs/etc/nanorc |
al@17862 | 46 cd $fs; patch -p0 < $stuff/nano.patch |
pankso@19 | 47 } |