wok-current annotate nnn/receipt @ rev 25177

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