wok view nnn/receipt @ rev 25003
updated nspr and nspr-dev (4.25 -> 4.33)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 14:53:05 2022 +0100 (2022-05-16) |
parents | fa5c28d5efb7 |
children | 7364ffdaaa60 |
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 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # pkg-config does not work properly
27 sed -i 's|\$(LDLIBS_CURSES)|-lncursesw -ltinfo -lrt|' Makefile
29 # -std=c11 invalid
30 sed -i 's|-std=c11|-std=c1x|' Makefile
32 # <fts.h> cannot be used with -D_FILE_OFFSET_BITS==64
33 sed -i 's|FILE_OFFSET_BITS 64|FILE_OFFSET_BITS 32|' \
34 src/nnn.c
36 export LDFLAGS="$LDFLAGS -lrt"
38 make \
39 CC=gcc-83 \
40 CFLAGS_OPTIMIZATION=-O2 \
41 PREFIX=/usr &&
42 make install \
43 PREFIX=/usr
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cook_copy_folders bin
50 }