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"
|
2017-09-07 22:36:49 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libevent, openssl, libcurl"
|
2018-05-19 02:57:06 +02:00
|
|
|
TERMUX_PKG_VERSION=2.94
|
2019-08-12 21:16:28 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2018-04-22 21:19:59 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/transmission/transmission/archive/${TERMUX_PKG_VERSION}.tar.gz
|
2018-05-19 02:57:06 +02:00
|
|
|
TERMUX_PKG_SHA256=440c2fd0f89b1ab59d8a4b79ecd7bffd61bc000e36fb5b6c8e88142a4fadbb1f
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-gtk --enable-lightweight --cache-file=termux_configure.cache"
|
|
|
|
|
2016-09-03 23:36:59 +02:00
|
|
|
termux_step_pre_configure() {
|
2018-04-22 21:19:59 +02:00
|
|
|
./autogen.sh
|
2016-09-03 23:36:59 +02:00
|
|
|
# liblog for android logging in syslog hack:
|
|
|
|
LDFLAGS+=" -llog"
|
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
|
|
|
}
|
2019-08-12 21:16:28 +02:00
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
# Setup transmission service script
|
|
|
|
mkdir -p $TERMUX_PREFIX/var/service
|
|
|
|
cd $TERMUX_PREFIX/var/service
|
|
|
|
mkdir -p transmission/log
|
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh" > transmission/run
|
|
|
|
echo 'mkdir -p ~/torrent/torrent-files' >> transmission/run
|
|
|
|
echo 'mkdir -p ~/torrent/download' >> transmission/run
|
|
|
|
echo 'exec transmission-daemon \' >> transmission/run
|
|
|
|
echo ' -f \' >> transmission/run
|
|
|
|
echo ' -c ~/torrent/torrent-files \' >> transmission/run
|
|
|
|
echo ' -w ~/torrent/download \' >> transmission/run
|
|
|
|
echo ' 2>&1' >> transmission/run
|
|
|
|
chmod +x transmission/run
|
|
|
|
touch transmission/down
|
|
|
|
|
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh" > transmission/log/run
|
|
|
|
echo 'mkdir -p "$LOGDIR/sv/transmission"' >> transmission/log/run
|
|
|
|
echo 'exec svlogd "$LOGDIR/sv/transmission"' >> transmission/log/run
|
|
|
|
chmod +x transmission/log/run
|
|
|
|
}
|