new package: libtorrent (#5260)

This commit is contained in:
Krishna Kanhaiya 2020-05-07 23:10:36 +05:30 committed by GitHub
parent 8fa0f729b3
commit 75f908792d
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,18 @@
TERMUX_PKG_HOMEPAGE=https://github.com/rakshasa/rtorrent/wiki
TERMUX_PKG_DESCRIPTION="Libtorrent BitTorrent library"
TERMUX_PKG_MAINTAINER="Krishna Kanhaiya @kcubeterm"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=0.13.8
TERMUX_PKG_SRCURL=https://github.com/rakshasa/libtorrent/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=0f6c2e7ffd3a1723ab47fdac785ec40f85c0a5b5a42c1d002272205b988be722
TERMUX_PKG_DEPENDS="openssl, zlib"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--enable-aligned=true
--without-fastcgi
--with-zlib=$TERMUX_PREFIX
"
termux_step_pre_configure() {
./autogen.sh
}

View File

@ -0,0 +1,12 @@
diff -uNr libtorrent-0.13.8/scripts/ax_check_zlib.m4 libtorrent-0.13.8.mod/scripts/ax_check_zlib.m4
--- libtorrent-0.13.8/scripts/ax_check_zlib.m4 2019-07-19 14:38:12.000000000 +0300
+++ libtorrent-0.13.8.mod/scripts/ax_check_zlib.m4 2020-05-07 20:33:39.695941588 +0300
@@ -70,7 +70,7 @@
# Handle user hints
#
[AC_MSG_CHECKING(if zlib is wanted)
-zlib_places="/usr/local /usr /opt/local /sw"
+zlib_places="@TERMUX_PREFIX@"
AC_ARG_WITH([zlib],
[ --with-zlib=DIR root directory path of zlib installation @<:@defaults to
/usr/local or /usr if not found in /usr/local@:>@