wok-6.x annotate nano/receipt @ rev 24247
updated perl-net-ssleay (1.88 -> 1.90)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 09:33:18 2022 +0100 (2022-01-02) |
parents | 84e8c7b07160 |
children | dd4fe41206e8 |
rev | line source |
---|---|
pankso@19 | 1 # SliTaz package receipt. |
pankso@19 | 2 |
pankso@19 | 3 PACKAGE="nano" |
Hans-G?nter@23227 | 4 VERSION="4.8" |
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 |
pascal@24071 | 27 current_version() |
pascal@24071 | 28 { |
pascal@24071 | 29 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24071 | 30 sed '/^[0-9]/!d;s|&.*||;q' |
pascal@24071 | 31 } |
pascal@24071 | 32 |
pankso@19 | 33 # Rules to configure and make the package. |
pankso@19 | 34 compile_rules() |
pankso@19 | 35 { |
Hans-G?nter@23227 | 36 # no longer supported in 4.2 |
Hans-G?nter@23227 | 37 # --disable-wrapping-as-root |
Hans-G?nter@23227 | 38 |
Hans-G?nter@21517 | 39 ./configure \ |
Hans-G?nter@21517 | 40 --sysconfdir=/etc \ |
Hans-G?nter@21517 | 41 --localstatedir=/var \ |
Hans-G?nter@21517 | 42 --enable-utf8 \ |
Hans-G?nter@23227 | 43 $CONFIGURE_ARGS \ |
Hans-G?nter@23227 | 44 $ARCH_ARGS && |
Hans-G?nter@21517 | 45 make && |
Hans-G?nter@21517 | 46 make install |
pankso@19 | 47 } |
pankso@19 | 48 |
pankso@19 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@19 | 50 genpkg_rules() |
pankso@19 | 51 { |
Hans-G?nter@23227 | 52 cp -a $install/* $fs |
Hans-G?nter@23227 | 53 rm -r $fs/usr/share/doc |
Hans-G?nter@23227 | 54 rm -r $fs/usr/share/locale |
Hans-G?nter@23227 | 55 rm -r $fs/usr/share/man |
al@17862 | 56 |
Hans-G?nter@21517 | 57 # Configuration file. |
al@19240 | 58 mkdir -p $fs/etc |
Hans-G?nter@23227 | 59 cp $src/doc/sample.nanorc $fs/etc/nanorc |
Hans-G?nter@21517 | 60 |
Hans-G?nter@21517 | 61 cd $fs |
Hans-G?nter@21517 | 62 patch --input=$stuff/patches/nanorc.patch \ |
Hans-G?nter@21517 | 63 etc/nanorc |
Hans-G?nter@23227 | 64 patch --input=$stuff/patches/sh.nanorc-$VERSION \ |
Hans-G?nter@21517 | 65 usr/share/nano/sh.nanorc |
al@19259 | 66 |
al@19259 | 67 # Shrink |
Hans-G?nter@23227 | 68 for i in $fs/usr/share/nano/*.nanorc |
Hans-G?nter@23227 | 69 do |
al@19259 | 70 sed -i '/^#/d;/^$/d' $i |
al@19259 | 71 done |
pankso@19 | 72 } |