wok-current view nzbget/receipt @ rev 25697
Up apache (CVE-2023-38709, CVE-2024-24795, CVE-2024-27316), up libarchive, qemu, add amdgpu/touchpad support and clean modules.list, up website for repology
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Apr 16 17:00:21 2024 +0000 (7 months ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="nzbget"
4 VERSION="21.1"
5 CATEGORY="network"
6 SHORT_DESC="The most efficient usenet downloader."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://nzbget.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="gcc83-lib-base libssl libxml2 ncurses"
15 BUILD_DEPENDS="gcc83 libxml2-dev ncurses-dev openssl-dev zlib-dev"
17 CONFIG_FILES="/etc/nzbget.conf"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -ltinfo"
29 export ncurses_LIBS=/lib/libncurses.so
30 export ncurses_CFLAGS=" "
32 ./configure \
33 CC=gcc-83 \
34 CXX=g++-83 \
35 --prefix=/usr \
36 --disable-parcheck \
37 $CONFIGURE_ARGS &&
38 make &&
39 make install DESTDIR=$DESTDIR
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/nzbget
46 mkdir -p $fs/etc
48 cp -a $install/usr/bin $fs/usr
49 # 21.0 functions of nzbgetd contained in nzbget
50 # cp -a $install/usr/sbin $fs/usr
51 cp -a $install/usr/share/nzbget/nzbget.conf $fs/etc
52 cp -a $install/usr/share/nzbget/scripts $fs/usr/share/nbzget
53 }