Skip to content

Commit

Permalink
addpkg(x11/qbittorrent{,-nox}): 4.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
TomJo2000 committed May 4, 2024
1 parent 6c51913 commit b1dab7c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions x11-packages/qbittorrent/build.sh
Original file line number Diff line number Diff line change
@@ -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
}
4 changes: 4 additions & 0 deletions x11-packages/qbittorrent/qbittorrent-nox.subpackage.sh
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit b1dab7c

Please sign in to comment.