wok diff nnn/receipt @ rev 25359

updated tinyssh (20210601 -> 20220311)
author Hans-G?nter Theisgen
date Wed Jul 27 08:03:11 2022 +0100 (2022-07-27)
parents fa5c28d5efb7
children 7364ffdaaa60
line diff
     1.1 --- a/nnn/receipt	Wed Nov 24 16:03:33 2021 +0000
     1.2 +++ b/nnn/receipt	Wed Jul 27 08:03:11 2022 +0100
     1.3 @@ -1,10 +1,10 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="nnn"
     1.7 -VERSION="4.0"
     1.8 +VERSION="4.5"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="The missing terminal file manager for X."
    1.11 -MAINTAINER="developer@slitaz.org"
    1.12 +MAINTAINER="maintainer@slitaz.org"
    1.13  LICENSE="BSD-2"
    1.14  WEB_SITE="https://github.com/jarun/nnn/"
    1.15  
    1.16 @@ -12,7 +12,7 @@
    1.17  WGET_URL="${WEB_SITE}archive/v$VERSION.tar.gz"
    1.18  
    1.19  DEPENDS="libtinfo ncursesw readline"
    1.20 -BUILD_DEPENDS="libtinfo ncursesw-dev readline-dev"
    1.21 +BUILD_DEPENDS="gcc83 libtinfo ncursesw-dev readline-dev"
    1.22  
    1.23  current_version()
    1.24  {
    1.25 @@ -29,12 +29,22 @@
    1.26  	# -std=c11 invalid
    1.27  	sed -i 's|-std=c11|-std=c1x|' Makefile
    1.28  
    1.29 -	make CFLAGS_OPTIMIZATION=-O2 PREFIX=/usr &&
    1.30 -	make PREFIX=/usr install
    1.31 +	# <fts.h> cannot be used with -D_FILE_OFFSET_BITS==64
    1.32 +	sed -i 's|FILE_OFFSET_BITS 64|FILE_OFFSET_BITS 32|' \
    1.33 +		src/nnn.c
    1.34 +
    1.35 +	export	LDFLAGS="$LDFLAGS -lrt"
    1.36 +
    1.37 +	make				\
    1.38 +		CC=gcc-83		\
    1.39 +		CFLAGS_OPTIMIZATION=-O2	\
    1.40 +		PREFIX=/usr &&
    1.41 +	make	install		\
    1.42 +		PREFIX=/usr
    1.43  }
    1.44  
    1.45  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.46  genpkg_rules()
    1.47  {
    1.48 -	cp -a $install/usr	$fs
    1.49 +	cook_copy_folders	bin
    1.50  }