wok annotate nano/receipt @ rev 21886

postgis: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 02 17:37:17 2019 +0200 (2019-10-02)
parents cb1c44991845
children 84e8c7b07160
rev   line source
pankso@19 1 # SliTaz package receipt.
pankso@19 2
pankso@19 3 PACKAGE="nano"
Hans-G?nter@21517 4 VERSION="4.2"
pankso@201 5 CATEGORY="utilities"
Hans-G?nter@21517 6 TAGS="text-editor"
Hans-G?nter@21517 7 SHORT_DESC="Nano Text Editor."
pankso@19 8 MAINTAINER="pankso@slitaz.org"
pascal@14999 9 LICENSE="GPL3"
al@19240 10 WEB_SITE="https://nano-editor.org/"
Hans-G?nter@21517 11
pankso@9675 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@17862 13 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
Hans-G?nter@21517 14
Hans-G?nter@21517 15 SUGGESTED="gpm"
Hans-G?nter@21517 16 DEPENDS="ncursesw zlib"
Hans-G?nter@21517 17 BUILD_DEPENDS="groff ncursesw-dev zlib-dev"
Hans-G?nter@21517 18 SPLIT="nano-doc"
Hans-G?nter@21517 19
pankso@12837 20 HOST_ARCH="i486 arm"
pankso@9675 21
pascal@19115 22 # Handle cross compilation
pascal@19115 23 case "$ARCH" in
pascal@19115 24 arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;;
pascal@19115 25 esac
pascal@19115 26
pankso@19 27 # Rules to configure and make the package.
pankso@19 28 compile_rules()
pankso@19 29 {
Hans-G?nter@21517 30 # --disable-wrapping-as-root no longer supported in 4.2
Hans-G?nter@21517 31 ./configure \
Hans-G?nter@21517 32 --sysconfdir=/etc \
Hans-G?nter@21517 33 --localstatedir=/var \
Hans-G?nter@21517 34 --enable-utf8 \
pankso@16079 35 $CONFIGURE_ARGS $ARCH_ARGS &&
Hans-G?nter@21517 36 make &&
Hans-G?nter@21517 37 make install
pankso@19 38 }
pankso@19 39
pankso@19 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@19 41 genpkg_rules()
pankso@19 42 {
al@19240 43 cp -a $install/* $fs
al@19259 44 rm -r $fs/usr/share/doc $fs/usr/share/locale $fs/usr/share/man
al@17862 45
Hans-G?nter@21517 46 # Configuration file.
al@19240 47 mkdir -p $fs/etc
Hans-G?nter@21518 48 cp $src/doc/sample.nanorc $fs/etc/nanorc
Hans-G?nter@21517 49
Hans-G?nter@21517 50 cd $fs
Hans-G?nter@21517 51 patch --input=$stuff/patches/nanorc.patch \
Hans-G?nter@21517 52 etc/nanorc
Hans-G?nter@21517 53 patch --input=$stuff/patches/sh.nanorc.patch \
Hans-G?nter@21517 54 usr/share/nano/sh.nanorc
al@19259 55
al@19259 56 # Shrink
al@19259 57 for i in $fs/usr/share/nano/*.nanorc; do
al@19259 58 sed -i '/^#/d;/^$/d' $i
al@19259 59 done
pankso@19 60 }