# Template file for 'qbittorrent' pkgname=qbittorrent version=5.1.2 revision=5 build_style=cmake configure_args="-DSYSTEMD=OFF -DGUI=ON -DWEBUI=ON" hostmakedepends="pkg-config qt6-tools qt6-declarative-host-tools" makedepends="libtorrent-rasterbar-devel qt6-base-private-devel qt6-declarative-devel qt6-svg-devel" depends="qt6-svg" short_desc="Free software alternative to µtorrent" maintainer="Érico Nogueira " license="GPL-2.0-or-later" homepage="https://www.qbittorrent.org/" changelog="https://www.qbittorrent.org/news.php" distfiles="${SOURCEFORGE_SITE}/qbittorrent/qbittorrent-${version}.tar.xz" checksum=d5806092c71959a5dbdf55c645ea45ed48a70369ab6c226039b83f1ade6979f2 CXXFLAGS=-std=gnu++17 post_configure() { # qbittorrent-nox configure_args="${configure_args//DGUI=ON/DGUI=OFF}" ( cmake_builddir="nox-build" do_configure ) } post_build() { # qbittorrent-nox ( cmake_builddir="nox-build" do_build ) } qbittorrent-nox_package() { short_desc+=" - no X11" pkg_install() { DESTDIR=${PKGDESTDIR} cmake -P nox-build/cmake_install.cmake } }