36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Template file for 'qbittorrent'
|
|
pkgname=qbittorrent
|
|
version=3.3.15
|
|
revision=2
|
|
build_style=qmake
|
|
hostmakedepends="automake libtool pkg-config qt5-qmake qt5-tools
|
|
qt5-host-tools qt5-declarative-devel"
|
|
makedepends="libtorrent-rasterbar-devel qt5-declarative-devel"
|
|
short_desc="Free software alternative to µtorrent"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-2"
|
|
homepage="http://www.qbittorrent.org/"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=a7bbc08a39912a15a496702e736a98c083011bbb14fe5f04440880d7e6b2ceae
|
|
nocross=https://build.voidlinux.eu/builders/armv7l_builder/builds/1349/steps/shell_3/logs/stdio
|
|
|
|
build_options="gui webui"
|
|
desc_option_gui="Enable the graphical user interface"
|
|
desc_option_webui="Enable the web user interface"
|
|
build_options_default="gui"
|
|
|
|
pre_configure() {
|
|
local _args
|
|
_args="--prefix=/usr"
|
|
_args+=" --with-qt4=no"
|
|
_args+=" --disable-systemd"
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
_args+=" --host=${XBPS_CROSS_TRIPLET}"
|
|
_args+=" --with-boost=${XBPS_CROSS_BASE}/usr"
|
|
patch -p0 < ${FILESDIR}/cross-configure_ac.patch
|
|
export QT_QMAKE=/usr/bin/qmake-qt5
|
|
fi
|
|
./bootstrap.sh
|
|
./configure ${_args} $(vopt_enable gui) $(vopt_enable webui)
|
|
}
|