wok rev 25001

updated nnn (4.0 -> 4.5)
author Hans-G?nter Theisgen
date Mon May 16 14:07:26 2022 +0100 (2022-05-16)
parents ecc0d362278b
children 6520a4f92e81
files nnn/receipt
line diff
     1.1 --- a/nnn/receipt	Mon May 16 13:53:18 2022 +0100
     1.2 +++ b/nnn/receipt	Mon May 16 14:07:26 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  }