wok view nnn/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (10 months ago)
parents c8002e745818
children
line source
1 # SliTaz package receipt.
3 PACKAGE="nnn"
4 VERSION="4.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="The missing terminal file manager for X."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="BSD-2"
9 WEB_SITE="https://github.com/jarun/nnn/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}archive/v$VERSION.tar.gz"
14 DEPENDS="libtinfo ncursesw readline"
15 BUILD_DEPENDS="gcc83 libtinfo ncursesw-dev readline-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # pkg-config does not work properly
28 sed -i 's|\$(LDLIBS_CURSES)|-lncursesw -ltinfo -lrt|' Makefile
30 # -std=c11 invalid
31 sed -i 's|-std=c11|-std=c1x|' Makefile
33 # <fts.h> cannot be used with -D_FILE_OFFSET_BITS==64
34 sed -i 's|FILE_OFFSET_BITS 64|FILE_OFFSET_BITS 32|' \
35 src/nnn.c
37 export LDFLAGS="$LDFLAGS -lrt"
39 make \
40 CC=gcc-83 \
41 CFLAGS_OPTIMIZATION=-O2 \
42 PREFIX=/usr &&
43 make install \
44 PREFIX=/usr
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cook_copy_folders bin
51 }