wok-current view nnn/receipt @ rev 24947

updated nagios-nrpe (4.0.2 -> 4.0.3)
author Hans-G?nter Theisgen
date Fri Apr 22 17:39:55 2022 +0100 (2022-04-22)
parents 44db1b779095
children c8002e745818
line source
1 # SliTaz package receipt.
3 PACKAGE="nnn"
4 VERSION="4.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="The missing terminal file manager for X."
7 MAINTAINER="developer@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="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 make CFLAGS_OPTIMIZATION=-O2 PREFIX=/usr &&
33 make PREFIX=/usr install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/usr $fs
40 }