wok-6.x annotate nano/receipt @ rev 23862
xvkbd: wget_url that works for cook
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri Jun 19 11:08:54 2020 -0400 (2020-06-19) |
parents | 0bae549e1050 |
children | ee53899c6189 |
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 |
pankso@19 | 27 # Rules to configure and make the package. |
pankso@19 | 28 compile_rules() |
pankso@19 | 29 { |
Hans-G?nter@23227 | 30 # no longer supported in 4.2 |
Hans-G?nter@23227 | 31 # --disable-wrapping-as-root |
Hans-G?nter@23227 | 32 |
Hans-G?nter@21517 | 33 ./configure \ |
Hans-G?nter@21517 | 34 --sysconfdir=/etc \ |
Hans-G?nter@21517 | 35 --localstatedir=/var \ |
Hans-G?nter@21517 | 36 --enable-utf8 \ |
Hans-G?nter@23227 | 37 $CONFIGURE_ARGS \ |
Hans-G?nter@23227 | 38 $ARCH_ARGS && |
Hans-G?nter@21517 | 39 make && |
Hans-G?nter@21517 | 40 make install |
pankso@19 | 41 } |
pankso@19 | 42 |
pankso@19 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@19 | 44 genpkg_rules() |
pankso@19 | 45 { |
Hans-G?nter@23227 | 46 cp -a $install/* $fs |
Hans-G?nter@23227 | 47 rm -r $fs/usr/share/doc |
Hans-G?nter@23227 | 48 rm -r $fs/usr/share/locale |
Hans-G?nter@23227 | 49 rm -r $fs/usr/share/man |
al@17862 | 50 |
Hans-G?nter@21517 | 51 # Configuration file. |
al@19240 | 52 mkdir -p $fs/etc |
Hans-G?nter@23227 | 53 cp $src/doc/sample.nanorc $fs/etc/nanorc |
Hans-G?nter@21517 | 54 |
Hans-G?nter@21517 | 55 cd $fs |
Hans-G?nter@21517 | 56 patch --input=$stuff/patches/nanorc.patch \ |
Hans-G?nter@21517 | 57 etc/nanorc |
Hans-G?nter@23227 | 58 patch --input=$stuff/patches/sh.nanorc-$VERSION \ |
Hans-G?nter@21517 | 59 usr/share/nano/sh.nanorc |
al@19259 | 60 |
al@19259 | 61 # Shrink |
Hans-G?nter@23227 | 62 for i in $fs/usr/share/nano/*.nanorc |
Hans-G?nter@23227 | 63 do |
al@19259 | 64 sed -i '/^#/d;/^$/d' $i |
al@19259 | 65 done |
pankso@19 | 66 } |