57 lines
1.7 KiB
Bash
57 lines
1.7 KiB
Bash
# Template file for 'qbittorrent'
|
|
pkgname=qbittorrent
|
|
version=4.4.3.1
|
|
revision=2
|
|
create_wrksrc=yes
|
|
build_style=gnu-configure
|
|
build_helper=qmake
|
|
configure_args="--disable-systemd --with-boost=${XBPS_CROSS_BASE}/usr
|
|
--with-boost-libdir=${XBPS_CROSS_BASE}/usr/lib"
|
|
hostmakedepends="automake libtool pkg-config qt5-host-tools qt5-qmake qt5-tools"
|
|
makedepends="libtorrent-rasterbar-devel qt5-declarative-devel qt5-svg-devel"
|
|
depends="qt5-svg"
|
|
short_desc="Free software alternative to µtorrent"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.qbittorrent.org/"
|
|
changelog="https://www.qbittorrent.org/news.php"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=b64559ca50b54bc6c5be17302e69f34fba8433059842aa4093865dc2c00d24c8
|
|
CXXFLAGS=-std=gnu++17
|
|
|
|
do_extract() {
|
|
local n=${pkgname}-${version}
|
|
mkdir -p build-nox build-x11
|
|
bsdtar xf ${XBPS_SRCDISTDIR}/${n}/${n}.tar.xz --strip-components=1 -C build-x11
|
|
bsdtar xf ${XBPS_SRCDISTDIR}/${n}/${n}.tar.xz --strip-components=1 -C build-nox
|
|
}
|
|
|
|
do_configure() {
|
|
cd ${wrksrc}/build-x11
|
|
./bootstrap.sh
|
|
QT_QMAKE=${XBPS_WRAPPERDIR} ./configure ${configure_args} --enable-gui --disable-webui
|
|
cd ${wrksrc}/build-nox
|
|
./bootstrap.sh
|
|
QT_QMAKE=${XBPS_WRAPPERDIR} ./configure ${configure_args} --disable-gui --enable-webui
|
|
}
|
|
|
|
do_build() {
|
|
cd ${wrksrc}/build-x11
|
|
make ${makejobs} CC="$CC" CXX="$CXX" LINK="$CXX"
|
|
cd ${wrksrc}/build-nox
|
|
make ${makejobs} CC="$CC" CXX="$CXX" LINK="$CXX"
|
|
}
|
|
|
|
do_install() {
|
|
cd ${wrksrc}/build-x11
|
|
make ${makejobs} INSTALL_ROOT=${DESTDIR} install
|
|
}
|
|
|
|
qbittorrent-nox_package() {
|
|
short_desc+=" - no X11"
|
|
pkg_install() {
|
|
cd ${wrksrc}/build-nox
|
|
make ${makejobs} INSTALL_ROOT=${PKGDESTDIR} install
|
|
}
|
|
}
|