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

Antonio Rojas arojas at gemini.archlinux.org
Wed May 4 10:49:40 UTC 2022


    Date: Wednesday, May 4, 2022 @ 10:49:40
  Author: arojas
Revision: 1193303

Update to 4.2.0, switch to Qt6

Modified:
  rssguard/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++--------------------
 1 file changed, 17 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-04 10:49:38 UTC (rev 1193302)
+++ PKGBUILD	2022-05-04 10:49:40 UTC (rev 1193303)
@@ -5,46 +5,43 @@
 
 pkgbase=rssguard
 pkgname=(rssguard{,-nowebengine})
-pkgver=4.1.2
+pkgver=4.2.0
 pkgrel=1
-pkgdesc='Simple (yet powerful) Qt5 feed reader'
+pkgdesc='Simple (yet powerful) Qt feed reader'
 arch=('x86_64')
 url='https://github.com/martinrotter/rssguard'
 license=('GPL3')
-makedepends=('qt5-tools' 'qt5-multimedia' 'qt5-webengine')
+makedepends=('cmake' 'qt6-tools' 'qt6-multimedia' 'qt6-webengine' 'qt6-5compat')
 optdepends=('clang: Support for beautification of message filter scripts')
 source=("https://github.com/martinrotter/$pkgbase/archive/$pkgver/$pkgbase-$pkgver.tar.gz")
-sha256sums=('3e9c6b25cad846aa2047f737d961fe007c88873d9e9772ec8e238908c6f8df95')
+sha256sums=('8911b2d3d378e39c0d34b78c42c6d5b5775b0894f2edef9092a8ce45dcd9a2e4')
 
-prepare() {
-  mkdir build{,-nowebengine}
-}
-
 build() {
-  cd build
-  qmake-qt5 ../$pkgname-$pkgver -r CONFIG+=release PREFIX=/usr
-  make
+  cmake -B build -S $pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_WITH_QT6=ON
+  cmake --build build
 
-  cd ../build-nowebengine
-  qmake-qt5 ../$pkgname-$pkgver -r CONFIG+=release PREFIX=/usr USE_WEBENGINE=false
-  make
+  cmake -B build-nowebengine -S $pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_WITH_QT6=ON \
+    -DUSE_WEBENGINE=OFF
+  cmake --build build-nowebengine
 }
 
 package_rssguard() {
-  depends=('qt5-webengine' 'qt5-multimedia')
+  depends=('qt6-webengine' 'qt6-multimedia' 'qt6-5compat')
 
-  cd build
-  make INSTALL_ROOT="$pkgdir" install -j1
+  DESTDIR="$pkgdir" cmake --install build
 }
 
 package_rssguard-nowebengine() {
   pkgdesc+=' without WebEngine support'
-  depends=('hicolor-icon-theme' 'qt5-declarative' 'qt5-multimedia')
+  depends=('hicolor-icon-theme' 'qt6-declarative' 'qt6-multimedia' 'qt6-5compat')
   conflicts=("$pkgbase")
   provides=("$pkgbase=$pkgver")
 
-  cd build-nowebengine
-  make INSTALL_ROOT="$pkgdir" install -j1
+  DESTDIR="$pkgdir" cmake --install build-nowebengine
 
   # Ignore package by AppStream to avoid duplicated IDs
   rm -r "$pkgdir/usr/share/metainfo/"



More information about the arch-commits mailing list