From b1dab7cbe1200eb94e4effc7bd4557fdc54841e8 Mon Sep 17 00:00:00 2001 From: TomIO Date: Mon, 29 Apr 2024 01:17:14 +0200 Subject: [PATCH] addpkg(x11/qbittorrent{,-nox}): 4.6.4 closes #10081 --- x11-packages/qbittorrent/build.sh | 27 +++++++++++++++++++ .../qbittorrent/qbittorrent-nox.subpackage.sh | 4 +++ 2 files changed, 31 insertions(+) create mode 100644 x11-packages/qbittorrent/build.sh create mode 100644 x11-packages/qbittorrent/qbittorrent-nox.subpackage.sh diff --git a/x11-packages/qbittorrent/build.sh b/x11-packages/qbittorrent/build.sh new file mode 100644 index 000000000000000..2f1c9328fc5f622 --- /dev/null +++ b/x11-packages/qbittorrent/build.sh @@ -0,0 +1,27 @@ +TERMUX_PKG_HOMEPAGE=https://www.qbittorrent.org/ +TERMUX_PKG_DESCRIPTION="A Qt based BitTorrent client" +TERMUX_PKG_LICENSE="GPL-2.0, GPL-3.0" +TERMUX_PKG_MAINTAINER="Joshua Kahn @TomJo2000" +TERMUX_PKG_VERSION="4.6.4" +TERMUX_PKG_SRCURL=https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=5842eb2cc1745b72b090df562d35a7ec0a6469d898d411544808731578447e1d +TERMUX_PKG_FORCE_CMAKE=true +TERMUX_PKG_DEPENDS="libicu, libtorrent-rasterbar, openssl, qt5-qtbase" +TERMUX_PKG_BUILD_DEPENDS="qt5-qttools, qt5-qtsvg, boost, libc++" +TERMUX_PKG_AUTO_UPDATE=true +TERMUX_PKG_UPDATE_TAG_TYPE=newest-tag +TERMUX_PKG_UPDATE_VERSION_REGEXP='\d+\.\d+\.\d+' +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=' +-DSTACKTRACE=OFF +-DCMAKE_BUILD_TYPE=Release +-DBUILD_SHARED_LIBS=off +' + +# based on the secondary `-shared` build in `libncnn` +termux_step_post_make_install() { + echo -e "termux - building qbittorrent-nox for arch ${TERMUX_ARCH}..." + TERMUX_PKG_EXTRA_CONFIGURE_ARGS+='-DGUI=OFF' + termux_step_configure + termux_step_make + termux_step_make_install +} diff --git a/x11-packages/qbittorrent/qbittorrent-nox.subpackage.sh b/x11-packages/qbittorrent/qbittorrent-nox.subpackage.sh new file mode 100644 index 000000000000000..8178347cae4a545 --- /dev/null +++ b/x11-packages/qbittorrent/qbittorrent-nox.subpackage.sh @@ -0,0 +1,4 @@ +TERMUX_SUBPKG_DEPEND_ON_PARENT=no +TERMUX_SUBPKG_INCLUDE='bin/qbittorrent-nox share/man/man1/qbittorrent-nox.1.gz' +TERMUX_SUBPKG_DESCRIPTION='A Qt based BitTorrent client - headless version' +TERMUX_SUBPKG_DEPENDS='libicu, libtorrent-rasterbar, openssl, qt5-qtbase'