wok-next diff nano/receipt @ rev 20494
make-slitaz-icons: in multiple choice for 16px request: if 16px and scalable icons both are available, try to choose 16px one, but not the first caught.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Mar 13 23:17:56 2018 +0200 (2018-03-13) |
parents | 6c12ac1293fc |
children | 757d032c55c7 |
line diff
1.1 --- a/nano/receipt Mon Oct 16 13:38:21 2017 +0200 1.2 +++ b/nano/receipt Tue Mar 13 23:17:56 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="nano" 1.8 VERSION="2.6.3" 1.9 @@ -7,31 +7,17 @@ 1.10 MAINTAINER="pankso@slitaz.org" 1.11 LICENSE="GPL3" 1.12 WEB_SITE="https://nano-editor.org/" 1.13 -TAGS="text-editor" 1.14 -HOST_ARCH="i486 arm" 1.15 -SUGGESTED="gpm" 1.16 1.17 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.18 WGET_URL="${WEB_SITE}dist/v${VERSION%.*}/$TARBALL" 1.19 1.20 -DEPENDS="ncurses zlib" 1.21 -BUILD_DEPENDS="gettext ncurses-dev zlib-dev groff" 1.22 BUILD_DEPENDS_arm="ncurses-dev zlib-dev" 1.23 +BUILD_DEPENDS="gettext ncurses-dev zlib-dev groff libmagic-dev" 1.24 1.25 -# Handle cross compilation 1.26 -case "$ARCH" in 1.27 - arm*) BUILD_DEPENDS=$BUILD_DEPENDS_arm ;; 1.28 -esac 1.29 - 1.30 -# Rules to configure and make the package. 1.31 -compile_rules() 1.32 -{ 1.33 - while read i; do patch -p1 -i $stuff/patches/$i; done < $stuff/patches/series 1.34 - 1.35 +compile_rules() { 1.36 ./configure \ 1.37 --sysconfdir=/etc \ 1.38 --localstatedir=/var \ 1.39 - --docdir=/usr/share/doc/nano-$VERSION \ 1.40 --disable-wrapping-as-root \ 1.41 --enable-utf8 \ 1.42 $CONFIGURE_ARGS $ARCH_ARGS && 1.43 @@ -44,13 +30,14 @@ 1.44 install -v -m644 doc/texinfo/nano.html $install/usr/share/doc/nano-$VERSION 1.45 } 1.46 1.47 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.48 -genpkg_rules() 1.49 -{ 1.50 +genpkg_rules() { 1.51 copy etc/ bin/ nano/ 1.52 1.53 # Shrink 1.54 for i in $fs/usr/share/nano/*.nanorc; do 1.55 sed -i '/^#/d;/^$/d' $i 1.56 done 1.57 + DEPENDS="libmagic ncurses zlib" 1.58 + TAGS="text-editor" 1.59 + SUGGESTED="gpm" 1.60 }