git » kdegraphics-mobipocket.git » commit d652a30

upgpkg: 24.01.80-1: kde-unstable

author Antonio Rojas
2023-11-30 06:48:56 UTC
committer Antonio Rojas
2023-11-30 06:48:56 UTC
parent 7cdf131d3be4fc0e887e3f9fa5ce80a6ca5a99c5

upgpkg: 24.01.80-1: kde-unstable

.SRCINFO +18 -5
PKGBUILD +28 -8

diff --git a/.SRCINFO b/.SRCINFO
index 7343837..584e7b4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = kdegraphics-mobipocket
 	pkgdesc = A library to handle mobipocket files
-	pkgver = 23.08.3
+	pkgver = 24.01.80
 	pkgrel = 1
 	url = https://apps.kde.org/es/kdegraphics_mobipocket/
 	arch = x86_64
@@ -8,13 +8,26 @@ pkgbase = kdegraphics-mobipocket
 	license = LGPL
 	license = FDL
 	makedepends = extra-cmake-modules
-	depends = qt5-base
-	source = https://download.kde.org/stable/release-service/23.08.3/src/kdegraphics-mobipocket-23.08.3.tar.xz
-	source = https://download.kde.org/stable/release-service/23.08.3/src/kdegraphics-mobipocket-23.08.3.tar.xz.sig
+	makedepends = qt5-base
+	makedepends = qt6-5compat
+	makedepends = qt6-base
+	depends = gcc-libs
+	depends = glibc
+	source = https://download.kde.org/unstable/release-service/24.01.80/src/kdegraphics-mobipocket-24.01.80.tar.xz
+	source = https://download.kde.org/unstable/release-service/24.01.80/src/kdegraphics-mobipocket-24.01.80.tar.xz.sig
 	validpgpkeys = CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7
 	validpgpkeys = F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
 	validpgpkeys = D81C0CB38EB725EF6691C385BB463350D6EF31EF
-	sha256sums = 3a241d4ca375cbb6167dc287f33d93b5e05d3c1642d5bcdfd6d25e8fd5ac7487
+	sha256sums = 12521e25590288041e01daf48badb22448bb1bb944cca783e2a3ceab0d64ae16
 	sha256sums = SKIP
 
 pkgname = kdegraphics-mobipocket
+	depends = gcc-libs
+	depends = glibc
+	depends = qt6-5compat
+	depends = qt6-base
+
+pkgname = kdegraphics-mobipocket5
+	depends = gcc-libs
+	depends = glibc
+	depends = qt5-base
diff --git a/PKGBUILD b/PKGBUILD
index 9175037..d4a1acc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,17 +2,23 @@
 # Maintainer: Antonio Rojas <arojas@archlinux.org>
 # Contributor: Andrea Scarpino <andrea@archlinux.org>
 
-pkgname=kdegraphics-mobipocket
-pkgver=23.08.3
+pkgbase=kdegraphics-mobipocket
+pkgname=(kdegraphics-mobipocket
+         kdegraphics-mobipocket5)
+pkgver=24.01.80
 pkgrel=1
 pkgdesc='A library to handle mobipocket files'
 url='https://apps.kde.org/es/kdegraphics_mobipocket/'
 arch=(x86_64)
 license=(GPL LGPL FDL)
-depends=(qt5-base)
-makedepends=(extra-cmake-modules)
-source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig})
-sha256sums=('3a241d4ca375cbb6167dc287f33d93b5e05d3c1642d5bcdfd6d25e8fd5ac7487'
+depends=(gcc-libs
+         glibc)
+makedepends=(extra-cmake-modules
+             qt5-base
+             qt6-5compat
+             qt6-base)
+source=(https://download.kde.org/unstable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig})
+sha256sums=('12521e25590288041e01daf48badb22448bb1bb944cca783e2a3ceab0d64ae16'
             'SKIP')
 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
               F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87  # Christoph Feck <cfeck@kde.org>
@@ -20,10 +26,24 @@ validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aac
 
 build() {
   cmake -B build -S $pkgname-$pkgver \
-    -DBUILD_TESTING=OFF
+    -DBUILD_TESTING=OFF \
+    -DQT_MAJOR_VERSION=6
   cmake --build build
+
+  cmake -B build5 -S $pkgname-$pkgver \
+    -DBUILD_TESTING=OFF
+  cmake --build build5
 }
 
-package() {
+package_kdegraphics-mobipocket() {
+  depends+=(qt6-5compat
+            qt6-base)
+
   DESTDIR="$pkgdir" cmake --install build
 }
+
+package_kdegraphics-mobipocket5() {
+  depends+=(qt5-base)
+
+  DESTDIR="$pkgdir" cmake --install build5
+}