wok-next annotate nano/receipt @ rev 19783

Up receipts to v2 syntax: cook_copy_files & cook_copy_folders -> copy
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jun 18 04:38:10 2017 +0300 (2017-06-18)
parents 4048d48a47c1
children 6c12ac1293fc
rev   line source
pankso@19 1 # SliTaz package receipt.
pankso@19 2
pankso@19 3 PACKAGE="nano"
al@19693 4 VERSION="2.6.3"
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 TAGS="text-editor"
pankso@12837 11 HOST_ARCH="i486 arm"
al@19693 12 SUGGESTED="gpm"
pankso@9675 13
al@19693 14 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19693 15 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
al@19693 16
al@19693 17 DEPENDS="ncurses zlib"
al@19693 18 BUILD_DEPENDS="gettext ncurses-dev zlib-dev groff"
al@19693 19 BUILD_DEPENDS_arm="ncursesw-dev zlib-dev"
pankso@19 20
pascal@19115 21 # Handle cross compilation
pascal@19115 22 case "$ARCH" in
al@19693 23 arm*) BUILD_DEPENDS=$BUILD_DEPENDS_arm ;;
pascal@19115 24 esac
pascal@19115 25
pankso@19 26 # Rules to configure and make the package.
pankso@19 27 compile_rules()
pankso@19 28 {
al@19693 29 while read i; do patch -p1 -i $stuff/patches/$i; done < $stuff/patches/series
al@19693 30
al@14334 31 ./configure \
al@14334 32 --sysconfdir=/etc \
al@14334 33 --localstatedir=/var \
al@19693 34 --docdir=/usr/share/doc/nano-$VERSION \
al@19240 35 --disable-wrapping-as-root \
pankso@16334 36 --enable-utf8 \
pankso@16079 37 $CONFIGURE_ARGS $ARCH_ARGS &&
al@19693 38 make && make install || exit 1
al@19693 39
al@19693 40 # Config file.
al@19693 41 mkdir -p $install/etc
al@19693 42 cp $src/doc/nanorc.sample $install/etc/nanorc
al@19693 43
al@19693 44 install -v -m644 doc/texinfo/nano.html $install/usr/share/doc/nano-$VERSION
pankso@19 45 }
pankso@19 46
pankso@19 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@19 48 genpkg_rules()
pankso@19 49 {
al@19783 50 copy etc/ bin/ nano/
al@19259 51
al@19259 52 # Shrink
al@19259 53 for i in $fs/usr/share/nano/*.nanorc; do
al@19259 54 sed -i '/^#/d;/^$/d' $i
al@19259 55 done
pankso@19 56 }