wok view nzbget/receipt @ rev 24590

syslinux: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 28 14:39:39 2022 +0000 (2022-02-28)
parents e93d9fd2f16f
children d30dcfb0598a
line source
1 # SliTaz package receipt.
3 PACKAGE="nzbget"
4 VERSION="21.0"
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 DESTDIR=$DESTDIR install
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 }