2018-10-06 00:51:18 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://transmissionbt.com/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Easy, lean and powerful BitTorrent client (gtk3)"
|
2019-01-21 17:50:21 +01:00
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-09-23 22:26:49 +02:00
|
|
|
TERMUX_PKG_VERSION=3.00
|
2021-03-01 11:26:06 +01:00
|
|
|
TERMUX_PKG_REVISION=2
|
2020-09-23 22:26:49 +02:00
|
|
|
TERMUX_PKG_GIT_BRANCH=$TERMUX_PKG_VERSION
|
|
|
|
TERMUX_PKG_SRCURL=https://github.com/transmission/transmission.git
|
|
|
|
TERMUX_PKG_DEPENDS="atk, gdk-pixbuf, glib, gtk3, libcairo, libcurl, libevent, miniupnpc, openssl, pango, zlib"
|
2018-10-06 00:51:18 +02:00
|
|
|
TERMUX_PKG_CONFLICTS="transmission"
|
|
|
|
TERMUX_PKG_REPLACES="transmission"
|
2020-09-23 22:26:49 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-nls --enable-cli --enable-gtk --enable-lightweight --cache-file=termux_configure.cache"
|
|
|
|
# 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" 'exec transmission-daemon -f 2>&1'
|
|
|
|
"transmission/log" 'mkdir -p "$LOGDIR/sv/transmission"\nexec svlogd "$LOGDIR/sv/transmission"'
|
|
|
|
)
|
2018-10-06 16:00:04 +02:00
|
|
|
|
2018-10-06 00:51:18 +02:00
|
|
|
termux_step_pre_configure() {
|
2020-09-23 22:26:49 +02:00
|
|
|
CFLAGS+=" -D_POSIX_C_SOURCE=200809L"
|
2019-01-21 17:50:21 +01:00
|
|
|
./autogen.sh
|
2018-10-06 00:51:18 +02:00
|
|
|
|
2019-01-21 17:50:21 +01:00
|
|
|
echo "ac_cv_func_getmntent=no" >> termux_configure.cache
|
|
|
|
echo "ac_cv_search_getmntent=false" >> termux_configure.cache
|
|
|
|
chmod a-w termux_configure.cache
|
2018-10-06 00:51:18 +02:00
|
|
|
}
|