deepin.deepin-compressor: 5.12.24 -> 6.0.1

This commit is contained in:
rewine 2024-03-28 18:16:17 +08:00
parent 67bde3c8c7
commit bd98a8a7f1
2 changed files with 3 additions and 27 deletions

View File

@ -1,20 +0,0 @@
diff --git a/src/source/common/ddesktopservicesthread.h b/src/source/common/ddesktopservicesthread.h
index 49313744..456a5e96 100644
--- a/src/source/common/ddesktopservicesthread.h
+++ b/src/source/common/ddesktopservicesthread.h
@@ -8,10 +8,14 @@
#include <QThread>
+#include <dtkwidget_global.h>
+#include <dtkgui_global.h>
#include <DDesktopServices>
#include <QDebug>
#include <QFileInfo>
+
DWIDGET_USE_NAMESPACE
+DGUI_USE_NAMESPACE
// 文管打开文件目录线程
class DDesktopServicesThread : public QThread

View File

@ -20,22 +20,18 @@
stdenv.mkDerivation rec {
pname = "deepin-compressor";
version = "5.12.24";
version = "6.0.1";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-XNhG28VZifQrl3TZfx/OHnsAOo0eKrhGKDk+OjOYD8k=";
hash = "sha256-DUpYb1xNmWpBcKo9kajeVm/+z4yj2OBE+qOyEkCHbUI=";
};
patches = [
./0001-fix-build-on-new-dtk.diff
];
postPatch = ''
substituteInPlace src/source/common/pluginmanager.cpp \
--replace-fail "/usr/lib/" "$out/lib/"
--replace-fail "/usr/lib" "$out/lib"
substituteInPlace src/desktop/deepin-compressor.desktop \
--replace-fail "/usr" "$out"
'';