[arch-commits] Commit in qbittorrent/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Fri Jan 7 07:53:56 UTC 2022


    Date: Friday, January 7, 2022 @ 07:53:56
  Author: arojas
Revision: 1095799

Update to 4.4.0, switch to cmake and Qt6

Modified:
  qbittorrent/trunk/PKGBUILD

----------+
 PKGBUILD |   67 ++++++++++++++++++++++++++-----------------------------------
 1 file changed, 29 insertions(+), 38 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-07 07:14:01 UTC (rev 1095798)
+++ PKGBUILD	2022-01-07 07:53:56 UTC (rev 1095799)
@@ -1,5 +1,5 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-# Contributor: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
 # Contributor: Timothy Redaelli <timothy.redaelli at gmail.com>
 # Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
 # Contributor: Jkkyll Wu <adaptee at gmail [dot] com>
@@ -9,55 +9,46 @@
 
 pkgbase=qbittorrent
 pkgname=(qbittorrent qbittorrent-nox)
-pkgver=4.3.9
-pkgrel=2
-arch=('x86_64')
-url="https://www.qbittorrent.org"
-license=('custom' 'GPL')
-depends=('libtorrent-rasterbar' 'qt5-base')
-makedepends=('boost' 'qt5-tools' 'qt5-svg')
+pkgver=4.4.0
+pkgrel=1
+arch=(x86_64)
+url='https://www.qbittorrent.org'
+license=(custom GPL)
+depends=(libtorrent-rasterbar qt6-base)
+makedepends=(cmake boost qt6-tools qt6-svg)
 optdepends=('python: needed for torrent search tab')
-source=("https://downloads.sourceforge.net/sourceforge/qbittorrent/${pkgname}-${pkgver}.tar.xz"{,.asc})
-sha512sums=('19cff24f08306eda77d944f0388ffb192a6650089925a71142bd68c854f9493846008b02b155dedab0192eb975fdeeaba762d210478d5179f6ab7ba6aabe6a64'
+source=(https://downloads.sourceforge.net/sourceforge/qbittorrent/${pkgname}-${pkgver}.tar.xz{,.asc})
+sha512sums=('92c219969f6f44056579da24fd37dd40969d0b98e14aa29b5f32d2b9c1c7bba1095ba7d40c6d90ca66dd7e65a50f1d63ab1f1360e8b2f9cb64c8e914967cba08'
             'SKIP')
-b2sums=('1f0427bb5cf31237577e8bfa3270c33797b4e1239a69cf943ea829d6a414f738e8404cdbfa2bbd08734c496f11b9adea811799fe7e6824d7d007e6beb69b62a4'
+b2sums=('56ed77fba20ec1c3bcd4848ed73190a60504316695ea1f2248ebaf4e9faf03b76c2124adf5a3e99e48a217519befb117f8b463d125f106dc011423c761e4582f'
         'SKIP')
 validpgpkeys=('D8F3DA77AAC6741053599C136E4A2D025B7CC9A2') # sledgehammer999 <sledgehammer999 at qbittorrent.org>
 
 build() {
-  cd ${pkgbase}-${pkgver}
+  cmake -B build -S $pkgbase-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DQT6=ON
+  cmake --build build
 
-  # tell qmake not to break makepkg's debug/!strip options
-  export QBT_ADD_CONFIG='nostrip'
-
-  mkdir -p ${pkgbase}
-  pushd ${pkgbase}
-  ../configure --prefix=/usr
-  make
-  popd
-
-  # Build nox variant
-  mkdir -p "${pkgbase}-nox"
-  pushd "${pkgbase}-nox"
-  ../configure --prefix=/usr --disable-gui --enable-systemd
-  make
+  cmake -B build-nox -S $pkgbase-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DQT6=ON \
+    -DGUI=OFF \
+    -DSYSTEMD=ON
+  cmake --build build-nox
 }
 
 package_qbittorrent() {
-  pkgdesc="An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar."
-  depends+=('qt5-svg' 'hicolor-icon-theme')
+  pkgdesc='An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar'
+  depends+=(qt6-svg hicolor-icon-theme)
 
-  cd ${pkgbase}-${pkgver}/${pkgbase}
-
-  make INSTALL_ROOT="${pkgdir}" install
-  install -Dm644 "${srcdir}"/${pkgbase}-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
+  DESTDIR="$pkgdir" cmake --install build
+  install -Dm644 $pkgbase-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
 }
 
 package_qbittorrent-nox() {
-  pkgdesc="An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar, w/o gui"
+  pkgdesc='An advanced BitTorrent client programmed in C++, based on Qt toolkit and libtorrent-rasterbar, w/o gui'
 
-  cd ${pkgbase}-${pkgver}/${pkgbase}-nox
-
-  make INSTALL_ROOT="${pkgdir}" install
-  install -Dm644 "${srcdir}"/${pkgbase}-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
+  DESTDIR="$pkgdir" cmake --install build-nox
+  install -Dm644 $pkgbase-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname
 }



More information about the arch-commits mailing list