Date: Wednesday, January 4, 2023 @ 23:55:50
Author: arojas
Revision: 1376037
archrelease: copy trunk to community-staging-x86_64
Added:
deepin-image-viewer/repos/community-staging-x86_64/
deepin-image-viewer/repos/community-staging-x86_64/PKGBUILD
(from rev 1376033, deepin-image-viewer/trunk/PKGBUILD)
deepin-image-viewer/repos/community-staging-x86_64/libraw-0.21.patch
(from rev 1376034, deepin-image-viewer/trunk/libraw-0.21.patch)
-------------------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
libraw-0.21.patch | 16 ++++++++++++++++
2 files changed, 51 insertions(+)
Copied: deepin-image-viewer/repos/community-staging-x86_64/PKGBUILD (from rev
1376033, deepin-image-viewer/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-01-04 23:55:50 UTC (rev 1376037)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=deepin-image-viewer
+pkgver=5.9.9
+pkgrel=2
+pkgdesc='An image viewing tool with fashion interface and smooth performance'
+arch=('x86_64')
+url="https://github.com/linuxdeepin/deepin-image-viewer"
+license=('GPL3')
+depends=('deepin-qt5integration' 'deepin-image-editor' 'libexif' 'libraw'
'qt5-svg')
+makedepends=('cmake' 'ninja' 'qt5-tools')
+optdepends=('deepin-manual: for help manual'
+ 'deepin-shortcut-viewer: for shortcut display')
+groups=('deepin')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/deepin-image-viewer/archive/$pkgver.tar.gz"
+ libraw-0.21.patch)
+sha512sums=('cf4c308dd1d7bb6300b23c2135dd6b524ceafecaed4ead3ac65382ee34fa69e4868e9411b745247ca81d402b048204d27c617de63b4fa1eb3a71155bb0acbe44'
+
'37587172bb74d6e243ae34120f6d0f27c5aa0ce46fc3faf53878c2827811ba922370820c62715f406bbfe9ebf14dbfc0042b85dc0ee7c51c3a4da08d840b7fd4')
+
+prepare() {
+ cd deepin-image-viewer-$pkgver
+ sed -i -e 's|qt5/plugins|qt/plugins|' -e
's|${Qt5Core_DIR}|/usr/lib/cmake/Qt5Core|' qimage-plugins/libraw/CMakeLists.txt
+ patch -p1 < ../libraw-0.21.patch # Fix build with libraw 0.21
+}
+
+build() {
+ cd deepin-image-viewer-$pkgver
+ cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
+ ninja
+}
+
+package() {
+ cd deepin-image-viewer-$pkgver
+ DESTDIR="$pkgdir" ninja install
+}
Copied: deepin-image-viewer/repos/community-staging-x86_64/libraw-0.21.patch
(from rev 1376034, deepin-image-viewer/trunk/libraw-0.21.patch)
===================================================================
--- community-staging-x86_64/libraw-0.21.patch (rev 0)
+++ community-staging-x86_64/libraw-0.21.patch 2023-01-04 23:55:50 UTC (rev
1376037)
@@ -0,0 +1,16 @@
+diff --git a/qimage-plugins/libraw/rawiohandler.cpp
b/qimage-plugins/libraw/rawiohandler.cpp
+index 979b1d58..5236376f 100644
+--- a/qimage-plugins/libraw/rawiohandler.cpp
++++ b/qimage-plugins/libraw/rawiohandler.cpp
+@@ -63,7 +63,11 @@ bool RawIOHandlerPrivate::load(QIODevice *device)
+
+ stream = new Datastream(device);
+ raw = new LibRaw;
++#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21)
++ raw->imgdata.rawparams.use_rawspeed = 1;
++#else
+ raw->imgdata.params.use_rawspeed = 1;
++#endif
+ if (raw->open_datastream(stream) != LIBRAW_SUCCESS) {
+ delete raw;
+ raw = nullptr;