2018-01-09 18:54:15 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://nzbget.net/
|
|
|
|
TERMUX_PKG_DESCRIPTION="The most efficient usenet downloader"
|
2018-06-18 23:14:53 +02:00
|
|
|
TERMUX_PKG_VERSION=20.0
|
2018-09-11 22:43:19 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
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
|
2018-06-18 23:14:53 +02:00
|
|
|
TERMUX_PKG_SHA256=04dc36d432549c33d55145ecd95cc4309b3ab4a7731a1a03d954de389eacd06f
|
2018-01-09 18:54:15 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libxml2, ncurses, openssl, unrar, p7zip"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_c_bigendian=no"
|
|
|
|
|
|
|
|
termux_step_create_debscripts () {
|
|
|
|
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
|
|
|
|
}
|