2018-01-09 18:54:15 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://nzbget.net/
|
|
|
|
TERMUX_PKG_DESCRIPTION="The most efficient usenet downloader"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-06-14 14:16:26 +02:00
|
|
|
TERMUX_PKG_VERSION=21.1
|
2022-02-19 10:42:13 +01:00
|
|
|
TERMUX_PKG_REVISION=2
|
2018-01-09 18:54:15 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/nzbget/nzbget/releases/download/v${TERMUX_PKG_VERSION}/nzbget-${TERMUX_PKG_VERSION}-src.tar.gz
|
2021-06-14 14:16:26 +02:00
|
|
|
TERMUX_PKG_SHA256=4e8fc1beb80dc2af2d6a36a33a33f44dedddd4486002c644f4c4793043072025
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2022-02-19 10:42:13 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libc++, libxml2, ncurses, openssl-1.1, p7zip, zlib"
|
2019-03-30 02:00:35 +01:00
|
|
|
TERMUX_PKG_RECOMMENDS="unrar"
|
2022-02-19 10:42:13 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--with-openssl=$TERMUX_PREFIX
|
|
|
|
--with-openssl-includes=$TERMUX_PREFIX/include/openssl-1.1
|
|
|
|
--with-openssl-libraries=$TERMUX_PREFIX/lib/openssl-1.1
|
|
|
|
"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2018-01-09 18:54:15 +01:00
|
|
|
|
2022-02-19 10:42:13 +01:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
CFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CFLAGS"
|
|
|
|
CPPFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CPPFLAGS"
|
|
|
|
CXXFLAGS="-I$TERMUX_PREFIX/include/openssl-1.1 $CXXFLAGS"
|
|
|
|
LDFLAGS="-L$TERMUX_PREFIX/lib/openssl-1.1 -Wl,-rpath=$TERMUX_PREFIX/lib/openssl-1.1 $LDFLAGS"
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_create_debscripts() {
|
2018-01-09 18:54:15 +01:00
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
|
2018-06-18 23:14:53 +02:00
|
|
|
echo "if [ -z \"\$2\" ]; then" >> postinst # Run only on fresh install, not on upgrade
|
2018-01-09 18:54:15 +01:00
|
|
|
echo "sed -e 's|^\(CertStore=\).*|\1$TERMUX_PREFIX/etc/tls/cert.pem|g" >> postinst
|
2018-06-18 23:14:53 +02:00
|
|
|
echo "s|^\(ControlPassword=\).*|\1|g' $TERMUX_PREFIX/share/nzbget/nzbget.conf > $TERMUX_PREFIX/etc/nzbget.conf" >> postinst
|
|
|
|
echo "fi" >> postinst
|
2018-01-09 18:54:15 +01:00
|
|
|
echo "exit 0" >> postinst
|
|
|
|
chmod 0755 postinst
|
|
|
|
}
|