2018-08-22 16:43:24 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://transmissionbt.com/
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Easy, lean and powerful BitTorrent client"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-05-14 21:43:07 +02:00
|
|
|
TERMUX_PKG_VERSION=3.00
|
|
|
|
TERMUX_PKG_SRCURL=https://github.com/transmission/transmission.git
|
2020-05-14 22:15:08 +02:00
|
|
|
# lint-packages complains if SHA256 is not set
|
|
|
|
TERMUX_PKG_SHA256=SKIP_CHECKSUM
|
2019-11-17 14:50:59 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libcurl, libevent, miniupnpc, openssl"
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-gtk --enable-lightweight --cache-file=termux_configure.cache"
|
2020-01-05 15:58:04 +01:00
|
|
|
# transmission already puts timestamps in the info printed to stdout so no need for svlogd -tt,
|
|
|
|
# therefore we override the transmission/log run script
|
|
|
|
TERMUX_PKG_SERVICE_SCRIPT=(
|
|
|
|
"transmission" 'mkdir -p ~/torrent/torrent-files\nmkdir -p ~/torrent/download\nexec transmission-daemon -f -c ~/torrent/torrent-files -w ~/torrent/download 2>&1'
|
|
|
|
"transmission/log" 'mkdir -p "$LOGDIR/sv/transmission"\nexec svlogd "$LOGDIR/sv/transmission"'
|
|
|
|
)
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2020-05-14 21:43:07 +02:00
|
|
|
termux_step_extract_package() {
|
|
|
|
local CHECKED_OUT_FOLDER=$TERMUX_PKG_CACHEDIR/checkout-$TERMUX_PKG_VERSION
|
|
|
|
if [ ! -d $CHECKED_OUT_FOLDER ]; then
|
|
|
|
local TMP_CHECKOUT=$TERMUX_PKG_TMPDIR/tmp-checkout
|
|
|
|
rm -Rf $TMP_CHECKOUT
|
|
|
|
mkdir -p $TMP_CHECKOUT
|
|
|
|
|
|
|
|
git clone --depth 1 \
|
|
|
|
--branch $TERMUX_PKG_VERSION \
|
|
|
|
$TERMUX_PKG_SRCURL \
|
|
|
|
$TMP_CHECKOUT
|
|
|
|
cd $TMP_CHECKOUT
|
|
|
|
git submodule update --init --recursive
|
|
|
|
mv $TMP_CHECKOUT $CHECKED_OUT_FOLDER
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf $TERMUX_PKG_SRCDIR
|
|
|
|
cp -Rf $CHECKED_OUT_FOLDER $TERMUX_PKG_SRCDIR
|
|
|
|
}
|
|
|
|
|
2016-09-03 23:36:59 +02:00
|
|
|
termux_step_pre_configure() {
|
2018-04-22 21:19:59 +02:00
|
|
|
./autogen.sh
|
2015-06-13 01:03:31 +02:00
|
|
|
|
|
|
|
echo "ac_cv_func_getmntent=no" >> termux_configure.cache
|
|
|
|
echo "ac_cv_search_getmntent=false" >> termux_configure.cache
|
2016-09-03 23:36:59 +02:00
|
|
|
chmod a-w termux_configure.cache
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|