diff options
author | c0re100 | 2023-06-22 16:35:13 +0800 |
---|---|---|
committer | c0re100 | 2023-06-22 16:35:13 +0800 |
commit | f4c43865b00fe674591eb707c87e3328b1c826ba (patch) | |
tree | e057035ef3b51220c3a5351d6bf5173f21dcd322 | |
parent | d1daaf70bb633f06dc5b8759c7255719f9df7d47 (diff) | |
download | aur-f4c43865b00fe674591eb707c87e3328b1c826ba.tar.gz |
Fix Qt6 build
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 11 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = qbittorrent-enhanced-nox-git pkgdesc = A bittorrent client powered by C++, Qt6 and the good libtorrent library (Enhanced Edition) pkgver = 4.5.4.10.r0.g416904b36 - pkgrel = 1 + pkgrel = 2 url = https://github.com/c0re100/qBittorrent-Enhanced-Edition arch = arm arch = armv6h @@ -11,6 +11,7 @@ pkgbase = qbittorrent-enhanced-nox-git arch = x86_64 license = custom license = GPL + makedepends = cmake makedepends = boost makedepends = git makedepends = qt6-tools @@ -2,13 +2,13 @@ pkgname=qbittorrent-enhanced-nox-git pkgver=4.5.4.10.r0.g416904b36 -pkgrel=1 +pkgrel=2 pkgdesc="A bittorrent client powered by C++, Qt6 and the good libtorrent library (Enhanced Edition)" arch=('arm' 'armv6h' 'armv7h' 'aarch64' 'i686' 'x86_64') url="https://github.com/c0re100/qBittorrent-Enhanced-Edition" license=('custom' 'GPL') depends=('libtorrent-rasterbar' 'qt6-base') -makedepends=('boost' 'git' 'qt6-tools') +makedepends=('cmake' 'boost' 'git' 'qt6-tools') optdepends=('python: needed for torrent search tab') conflicts=('qbittorrent-nox') provides=('qbittorrent-nox') @@ -27,16 +27,17 @@ pkgver() { build() { cd ${pkgname%-*} - # tell qmake not to break makepkg's debug/!strip options - export QBT_ADD_CONFIG='nostrip' - - ./configure --prefix=/usr --disable-gui CXXFLAGS="-std=c++17" - make + cmake -B build -S . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DQT6=ON \ + -DGUI=OFF \ + -DSYSTEMD=ON + cmake --build build } package() { cd ${pkgname%-*} - make INSTALL_ROOT="$pkgdir/" install + DESTDIR="$pkgdir" cmake --install build install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } |