community/qbittorrent: enable tests

This commit is contained in:
Simon Zeni 2024-09-17 10:00:50 -04:00 committed by Patrycja Rosa
parent 727a1f6fea
commit 8333f4c498

View file

@ -7,7 +7,6 @@ pkgdesc="qBittorrent client"
url="https://www.qbittorrent.org/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # qBittorrent has no tests
makedepends="
boost-dev
cmake
@ -44,7 +43,8 @@ build() {
-DGUI=ON \
-DWEBUI=OFF \
-DSTACKTRACE=OFF \
-DQT6=ON
-DQT6=ON \
-DTESTING=ON
cmake --build build-gui
cmake -B build-nox -G Ninja \
@ -53,10 +53,15 @@ build() {
-DGUI=OFF \
-DWEBUI=ON \
-DSTACKTRACE=OFF \
-DQT6=ON
-DQT6=ON \
-DTESTING=OFF
cmake --build build-nox
}
check() {
cmake --build build-gui --target check
}
package() {
depends="qt6-qtsvg" # needed for ui icons
DESTDIR="$pkgdir" cmake --install build-gui