wok-current annotate nano/receipt @ rev 19272
xz: enable lzma update
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Mon Jul 04 11:33:24 2016 -0400 (2016-07-04) |
parents | c9028f74aaec |
children | 11b5e93cb5f2 |
rev | line source |
---|---|
pankso@19 | 1 # SliTaz package receipt. |
pankso@19 | 2 |
pankso@19 | 3 PACKAGE="nano" |
al@19240 | 4 VERSION="2.6.1" |
pankso@201 | 5 CATEGORY="utilities" |
al@19241 | 6 SHORT_DESC="Nano Text Editor" |
pankso@19 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@19240 | 9 WEB_SITE="https://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" |
al@19259 | 18 SPLIT="nano-doc" |
pankso@19 | 19 |
pascal@19115 | 20 # Handle cross compilation |
pascal@19115 | 21 case "$ARCH" in |
pascal@19115 | 22 arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;; |
pascal@19115 | 23 esac |
pascal@19115 | 24 |
pankso@19 | 25 # Rules to configure and make the package. |
pankso@19 | 26 compile_rules() |
pankso@19 | 27 { |
al@14334 | 28 ./configure \ |
al@14334 | 29 --sysconfdir=/etc \ |
al@14334 | 30 --localstatedir=/var \ |
al@19240 | 31 --disable-wrapping-as-root \ |
pankso@16334 | 32 --enable-utf8 \ |
pankso@16079 | 33 $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@16079 | 34 make && make install |
al@19240 | 35 |
al@19259 | 36 cook_compress_manpages |
pankso@19 | 37 } |
pankso@19 | 38 |
pankso@19 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@19 | 40 genpkg_rules() |
pankso@19 | 41 { |
al@19240 | 42 cp -a $install/* $fs |
al@19259 | 43 rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man |
al@17862 | 44 |
pankso@9675 | 45 # Config file. |
al@19240 | 46 mkdir -p $fs/etc |
al@17862 | 47 cp $src/doc/nanorc.sample $fs/etc/nanorc |
al@17862 | 48 cd $fs; patch -p0 < $stuff/nano.patch |
al@19259 | 49 |
al@19259 | 50 # Shrink |
al@19259 | 51 for i in $fs/usr/share/nano/*.nanorc; do |
al@19259 | 52 sed -i '/^#/d;/^$/d' $i |
al@19259 | 53 done |
pankso@19 | 54 } |