wok view nano/receipt @ rev 24703

updated ladspa and ladspa-dev (1.15 -> 1.17)
author Hans-G?nter Theisgen
date Mon Mar 14 11:12:41 2022 +0100 (2022-03-14)
parents 84e8c7b07160
children dd4fe41206e8
line source
1 # SliTaz package receipt.
3 PACKAGE="nano"
4 VERSION="4.8"
5 CATEGORY="utilities"
6 TAGS="text-editor"
7 SHORT_DESC="Nano Text Editor."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://nano-editor.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL"
15 SUGGESTED="gpm"
16 DEPENDS="ncursesw zlib"
17 BUILD_DEPENDS="groff ncursesw-dev zlib-dev"
18 SPLIT="nano-doc"
20 HOST_ARCH="i486 arm"
22 # Handle cross compilation
23 case "$ARCH" in
24 arm*) BUILD_DEPENDS="ncursesw-dev zlib-dev" ;;
25 esac
27 current_version()
28 {
29 wget -O - $WEB_SITE 2>/dev/null | \
30 sed '/^[0-9]/!d;s|&.*||;q'
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 # no longer supported in 4.2
37 # --disable-wrapping-as-root
39 ./configure \
40 --sysconfdir=/etc \
41 --localstatedir=/var \
42 --enable-utf8 \
43 $CONFIGURE_ARGS \
44 $ARCH_ARGS &&
45 make &&
46 make install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 cp -a $install/* $fs
53 rm -r $fs/usr/share/doc
54 rm -r $fs/usr/share/locale
55 rm -r $fs/usr/share/man
57 # Configuration file.
58 mkdir -p $fs/etc
59 cp $src/doc/sample.nanorc $fs/etc/nanorc
61 cd $fs
62 patch --input=$stuff/patches/nanorc.patch \
63 etc/nanorc
64 patch --input=$stuff/patches/sh.nanorc-$VERSION \
65 usr/share/nano/sh.nanorc
67 # Shrink
68 for i in $fs/usr/share/nano/*.nanorc
69 do
70 sed -i '/^#/d;/^$/d' $i
71 done
72 }