wok annotate nzbget/receipt @ rev 24643
updated hg-git (0.8.13 -> 0.10.4)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 09 17:41:22 2022 +0100 (2022-03-09) |
parents | e93d9fd2f16f |
children | d30dcfb0598a |
rev | line source |
---|---|
pascal@17192 | 1 # SliTaz package receipt. |
pascal@17192 | 2 |
pascal@17192 | 3 PACKAGE="nzbget" |
Hans-G?nter@23254 | 4 VERSION="21.0" |
pascal@17192 | 5 CATEGORY="network" |
pascal@17192 | 6 SHORT_DESC="The most efficient usenet downloader." |
pascal@17192 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17192 | 8 LICENSE="GPL2" |
Hans-G?nter@23254 | 9 WEB_SITE="https://nzbget.net/" |
Hans-G?nter@23254 | 10 |
pascal@17192 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23254 | 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz" |
Hans-G?nter@23254 | 13 |
Hans-G?nter@23254 | 14 DEPENDS="gcc83-lib-base libssl libxml2 ncurses" |
Hans-G?nter@23254 | 15 BUILD_DEPENDS="gcc83 libxml2-dev ncurses-dev openssl-dev zlib-dev" |
Hans-G?nter@23254 | 16 |
pascal@17192 | 17 CONFIG_FILES="/etc/nzbget.conf" |
pascal@17192 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
pascal@17192 | 25 # Rules to configure and make the package. |
pascal@17192 | 26 compile_rules() |
pascal@17192 | 27 { |
Hans-G?nter@23254 | 28 export LDFLAGS="$LDFLAGS -ltinfo" |
Hans-G?nter@23254 | 29 export ncurses_LIBS=/lib/libncurses.so |
Hans-G?nter@23254 | 30 export ncurses_CFLAGS=" " |
Hans-G?nter@23254 | 31 |
Hans-G?nter@23254 | 32 ./configure \ |
Hans-G?nter@23254 | 33 CC=gcc-83 \ |
Hans-G?nter@23254 | 34 CXX=g++-83 \ |
Hans-G?nter@23254 | 35 --prefix=/usr \ |
Hans-G?nter@23254 | 36 --disable-parcheck \ |
pascal@17192 | 37 $CONFIGURE_ARGS && |
pascal@17192 | 38 make && |
Hans-G?nter@23254 | 39 make DESTDIR=$DESTDIR install |
pascal@17192 | 40 } |
pascal@17192 | 41 |
pascal@17192 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17192 | 43 genpkg_rules() |
pascal@17192 | 44 { |
Hans-G?nter@23254 | 45 mkdir -p $fs/usr/share/nzbget |
Hans-G?nter@23254 | 46 mkdir -p $fs/etc |
Hans-G?nter@23254 | 47 |
Hans-G?nter@23254 | 48 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23254 | 49 # 21.0 functions of nzbgetd contained in nzbget |
Hans-G?nter@23254 | 50 # cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@23254 | 51 cp -a $install/usr/share/nzbget/nzbget.conf $fs/etc |
Hans-G?nter@23254 | 52 cp -a $install/usr/share/nzbget/scripts $fs/usr/share/nbzget |
pascal@17192 | 53 } |