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

Antonio Rojas arojas at archlinux.org
Sat Apr 10 08:46:43 UTC 2021


    Date: Saturday, April 10, 2021 @ 08:46:43
  Author: arojas
Revision: 915421

Fix crash with Qt post-5.15.2 (FS#70366)

Modified:
  kbibtex/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-10 08:41:55 UTC (rev 915420)
+++ PKGBUILD	2021-04-10 08:46:43 UTC (rev 915421)
@@ -5,7 +5,7 @@
 pkgname=kbibtex
 epoch=1
 pkgver=0.9.2
-pkgrel=3
+pkgrel=4
 pkgdesc="A BibTeX editor for KDE"
 arch=(x86_64)
 url='https://userbase.kde.org/KBibTeX'
@@ -13,25 +13,23 @@
 depends=(poppler-qt5 qt5-webengine qt5-xmlpatterns qoauth ktexteditor)
 optdepends=('okular: Document preview')
 makedepends=(extra-cmake-modules kdoctools)
-source=("https://download.kde.org/stable/KBibTeX/$pkgver/$pkgname-$pkgver.tar.xz"{,.asc})
+source=(https://download.kde.org/stable/KBibTeX/$pkgver/$pkgname-$pkgver.tar.xz{,.asc}
+        kbibtex-qsortfilterproxymodel-crash.patch::"https://invent.kde.org/office/kbibtex/-/commit/84b0551e.patch")
 sha256sums=('d98651fba99de8ebaf1a19bd8b3c3ac660a34cea33e4c587be30fd61466fac27'
-            'SKIP')
+            'SKIP'
+            'b4390a9361dc3f734f158d82afb586ddcee92ac5412eb69f4d0734c364c6471b')
 validpgpkeys=('1808CB466328F4380685A3B1A264FD738D861F41') # Thomas Fischer <fischer at unix-ag.uni-kl.de>
 
 prepare() {
-  mkdir -p build
+  patch -d $pkgname-$pkgver -p1 < kbibtex-qsortfilterproxymodel-crash.patch # FS#70366
 }
 
 build() {
-  cd build
-
-  cmake ../$pkgname-$pkgver \
+  cmake -B build -S $pkgname-$pkgver \
     -DBUILD_TESTING=OFF
-  make
+  cmake --build build
 }
 
 package() {
-  cd build
-
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 }



More information about the arch-commits mailing list