git » tumbler.git » commit 7d39e87

fix libgepub-0.7 detection

author Evangelos Foutras
2022-11-03 02:10:38 UTC
committer Evangelos Foutras
2022-11-03 02:10:38 UTC
parent 3d93212c47c0c24b3c1064a08057065e515eb0c9

fix libgepub-0.7 detection

PKGBUILD +11 -6

diff --git a/PKGBUILD b/PKGBUILD
index f63ae05..b2a25ea 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=tumbler
 pkgver=4.16.1
-pkgrel=2
+pkgrel=3
 pkgdesc="D-Bus service for applications to request thumbnails"
 arch=('x86_64')
 url="https://docs.xfce.org/xfce/tumbler/start"
@@ -12,7 +12,7 @@ license=('GPL2' 'LGPL')
 groups=('xfce4')
 depends=('gdk-pixbuf2')
 makedepends=('intltool' 'python' 'ffmpegthumbnailer' 'poppler-glib' 'libgsf'
-             'libgepub' 'libopenraw' 'freetype2')
+             'libgepub' 'libopenraw' 'freetype2' 'xfce4-dev-tools')
 optdepends=('ffmpegthumbnailer: video thumbnails'
             'poppler-glib: PDF thumbnails'
             'libgsf: ODF thumbnails'
@@ -20,14 +20,19 @@ optdepends=('ffmpegthumbnailer: video thumbnails'
             'libopenraw: RAW thumbnails'
             'freetype2: font thumbnails')
 backup=('etc/xdg/tumbler/tumbler.rc')
-source=(https://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
-sha256sums=('852bbffa13f35b48ce92e243a03a118e32037c03e68297335c2bc4578e39273e')
+source=(https://archive.xfce.org/src/xfce/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
+        $pkgname-libopenraw-gnome-0.3.patch::https://gitlab.xfce.org/xfce/tumbler/-/commit/ad680ef6c79a.patch
+        $pkgname-libgepub-0.7.patch::https://gitlab.xfce.org/xfce/tumbler/-/commit/3ddd3e940bf8.patch)
+sha256sums=('852bbffa13f35b48ce92e243a03a118e32037c03e68297335c2bc4578e39273e'
+            '9a3356b243fffa4dc34e966f2f80aff1cb947a90bec3fed3008aff1973a93efc'
+            '07356891920ed4a5f9e991e3b87d1a66028c37e00325f614059ca61ad4750897')
 
 prepare() {
   cd "$srcdir/$pkgname-$pkgver"
 
-  # Fix build with libopenraw 0.3
-  sed -i 's|libopenraw-gnome-0.1|libopenraw-gnome-0.3|' configure
+  patch -Np1 -i ../$pkgname-libopenraw-gnome-0.3.patch
+  patch -Np1 -i ../$pkgname-libgepub-0.7.patch
+  NOCONFIGURE=1 xdt-autogen
 }
 
 build() {