--- doublecmd-1.3.0~0+svn13180+git0e8e4630.orig/build.sh
+++ doublecmd-1.3.0~0+svn13180+git0e8e4630/build.sh
@@ -1,7 +1,16 @@
-#!/bin/sh 
+#!/bin/bash
 
 set -e
 
+# Get revision number
+export VERSION=$(dpkg-parsechangelog | grep '^Version:')
+declare $(echo $VERSION | awk -v FS="(+svn|+git|-)" '{print "REVISION="$2+1" COMMIT="$3}')
+
+# Update dcrevision.inc
+echo "// Created by Git2RevisionInc"   >  src/dcrevision.inc
+echo "const dcRevision = '$REVISION';" >> src/dcrevision.inc
+echo "const dcCommit = '$COMMIT';"     >> src/dcrevision.inc
+
 # You can execute this script with different parameters:
 # components - compiling components needed for doublecmd
 # doublecmd - compiling doublecmd only (release mode)
--- doublecmd-1.3.0~0+svn13180+git0e8e4630.orig/clean.sh
+++ doublecmd-1.3.0~0+svn13180+git0e8e4630/clean.sh
@@ -38,3 +38,6 @@
 # Remove debug files
 rm -f  doublecmd.zdli doublecmd.dbg
 rm -rf doublecmd.dSYM
+
+# Remove dcrevision.inc
+rm -f src/dcrevision.inc
--- doublecmd-1.3.0~0+svn13180+git0e8e4630.orig/debian/changelog
+++ doublecmd-1.3.0~0+svn13180+git0e8e4630/debian/changelog
@@ -0,0 +1,432 @@
+doublecmd (1.3.0~0+svn13180+git0e8e4630-1) unstable; urgency=medium
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Tue, 30 Jun 2026 17:26:15 +0000
+
+doublecmd (1.3.0~0+svn13180+git0e8e4630-0) unstable; urgency=medium
+
+  * New upstream release
+  * Refresh debian/patches
+  * Bump Standards-Version to 4.5.0, no changes
+
+ -- Graham Inggs <ginggs@debian.org>  Sun, 09 Feb 2020 09:45:52 +0000
+
+doublecmd (0.9.7-1) unstable; urgency=medium
+
+  * New upstream release
+  * Update debian/copyright
+  * Bump Standards-Version to 4.4.1, no changes
+
+ -- Graham Inggs <ginggs@debian.org>  Sun, 12 Jan 2020 08:24:36 +0000
+
+doublecmd (0.9.6-1) unstable; urgency=medium
+
+  * New upstream release
+  * Enable dh_dwz now that #933541 is fixed
+
+ -- Graham Inggs <ginggs@debian.org>  Thu, 05 Sep 2019 16:58:32 +0000
+
+doublecmd (0.9.5-1) unstable; urgency=medium
+
+  * New upstream release
+  * Bump Standards-Version to 4.4.0, no changes
+
+ -- Graham Inggs <ginggs@debian.org>  Wed, 10 Jul 2019 11:05:40 +0000
+
+doublecmd (0.9.3-2) unstable; urgency=medium
+
+  * Switch to debhelper 12 and disable dh_dwz
+  * Set Rules-Requires-Root: no
+  * Upload to unstable
+
+ -- Graham Inggs <ginggs@debian.org>  Thu, 04 Jul 2019 23:03:40 +0000
+
+doublecmd (0.9.3-1) experimental; urgency=medium
+
+  * New upstream release
+    - Fix insecure use of /tmp (Closes: #926223)
+  * Refresh patches
+  * Add ${shlibs:Depends} to dependencies of doublecmd-plugins
+  * Drop unused Lintian overrides
+
+ -- Graham Inggs <ginggs@debian.org>  Mon, 20 May 2019 12:03:30 +0000
+
+doublecmd (0.9.2-1) experimental; urgency=medium
+
+  * New upstream release
+  * Drop libunrar5.patch, no longer needed
+
+ -- Graham Inggs <ginggs@debian.org>  Tue, 02 Apr 2019 09:22:22 +0000
+
+doublecmd (0.9.1-1) unstable; urgency=medium
+
+  * New upstream release
+  * Update debian/copyright
+  * Suggest libunrar5 instead of libunrar0 since #720051 is fixed
+  * Suggest libffmpegthumbnailer4v5 instead of libffmpegthumbnailer4
+  * Drop obsolete Breaks/Replaces on doublecmd-*-dbg packages
+
+ -- Graham Inggs <ginggs@debian.org>  Sun, 24 Feb 2019 07:03:41 +0000
+
+doublecmd (0.9.0-1) unstable; urgency=medium
+
+  * New upstream release
+  * Drop skip-qt5workaround-on-arm.patch, refresh remaining
+  * Install icons for AppStream
+  * Bump Standards-Version to 4.3.0, no changes
+
+ -- Graham Inggs <ginggs@debian.org>  Wed, 13 Feb 2019 14:12:07 +0000
+
+doublecmd (0.8.4-2) unstable; urgency=medium
+
+  * Skip Qt5 workaround on ARM where it causes link failure
+
+ -- Graham Inggs <ginggs@debian.org>  Sat, 29 Sep 2018 11:00:04 +0000
+
+doublecmd (0.8.4-1) unstable; urgency=medium
+
+  * New upstream release
+  * Refresh disable-splash.patch
+  * Bump Standards-Version to 4.2.1, no changes
+  * Update upstream homepage
+
+ -- Graham Inggs <ginggs@debian.org>  Tue, 25 Sep 2018 18:09:37 +0000
+
+doublecmd (0.8.3-1) unstable; urgency=medium
+
+  * New upstream release
+  * Drop lazarus1.8.2.patch included upstream
+  * Bump Standards-Version to 4.1.4, no changes
+
+ -- Graham Inggs <ginggs@debian.org>  Thu, 07 Jun 2018 15:29:46 +0000
+
+doublecmd (0.8.2-1) unstable; urgency=medium
+
+  * New upstream release
+  * Update Vcs-* URIs for move to salsa.debian.org
+  * Fix build with Lazarus 1.8.2
+  * Update Lintian overrides
+
+ -- Graham Inggs <ginggs@debian.org>  Wed, 07 Mar 2018 14:04:25 +0000
+
+doublecmd (0.8.1-2) unstable; urgency=medium
+
+  * Minimize build dependencies instead of depending on all of fpc
+  * Update debian/copyright
+  * Turn debhelper up to 11
+  * Let debhelper strip the binaries now that #35733 is fixed
+  * Bump Standards-Version to 4.1.3, no changes
+
+ -- Graham Inggs <ginggs@debian.org>  Thu, 04 Jan 2018 16:12:36 +0000
+
+doublecmd (0.8.1-1) unstable; urgency=medium
+
+  * New upstream release
+  * Drop fix-use-of-i386-assembly.patch included upstream
+
+ -- Graham Inggs <ginggs@debian.org>  Mon, 25 Dec 2017 09:48:33 +0000
+
+doublecmd (0.8.0-2) unstable; urgency=medium
+
+  * Fix FTBFS on non-i386 32-bit architectures
+
+ -- Graham Inggs <ginggs@debian.org>  Sat, 16 Dec 2017 20:13:06 +0000
+
+doublecmd (0.8.0-1) unstable; urgency=medium
+
+  * New upstream release
+  * Drop patches no longer needed
+  * Update debian/copyright for moved files
+  * Mark doublecmd-common Multi-Arch: foreign
+  * Bump Standards-Version to 4.1.2, no changes
+
+ -- Graham Inggs <ginggs@debian.org>  Sat, 16 Dec 2017 12:40:20 +0000
+
+doublecmd (0.8.0~svn7787-1) unstable; urgency=medium
+
+  * New upstream snapshot
+  * Fix various spelling and grammar errors reported by Lintian
+  * Update Lintian overrides
+  * Update debian/copyright
+  * Bump Standards-Version to 4.1.0, no changes
+
+ -- Graham Inggs <ginggs@debian.org>  Wed, 20 Sep 2017 14:43:04 +0000
+
+doublecmd (0.8.0~svn7711-1) unstable; urgency=medium
+
+  * New upstream snapshot
+    - fix build with Lazarus 1.7 (Closes: #868288)
+    - add support for Qt5
+  * Refresh patches
+  * Switch from Qt4 to Qt5
+  * Stop generating text changelog from upstream HTML changelog
+  * Bump Standards-Version to 4.0.0, no further changes
+  * Work around problem extracting debug info on the buildds
+
+ -- Graham Inggs <ginggs@debian.org>  Wed, 26 Jul 2017 17:54:32 +0200
+
+doublecmd (0.7.8-1) experimental; urgency=medium
+
+  * New upstream release.
+  * Update debian/copyright.
+  * Switch to debhelper 10.
+
+ -- Graham Inggs <ginggs@debian.org>  Sat, 11 Mar 2017 11:09:06 +0200
+
+doublecmd (0.7.7-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Refresh patches.
+  * Update debian/copyright.
+  * Update Lintian overrides for doublecmd-plugins.
+
+ -- Graham Inggs <ginggs@debian.org>  Wed, 28 Dec 2016 09:13:27 +0200
+
+doublecmd (0.7.6-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Refresh patches.
+  * Replace Suggests: mplayer2 with Suggests: mplayer. (Closes: #841190)
+
+ -- Graham Inggs <ginggs@debian.org>  Sun, 30 Oct 2016 10:23:07 +0200
+
+doublecmd (0.7.5-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Graham Inggs <ginggs@debian.org>  Fri, 23 Sep 2016 14:00:38 +0200
+
+doublecmd (0.7.4-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Update Lintian overrides.
+
+ -- Graham Inggs <ginggs@debian.org>  Tue, 06 Sep 2016 12:07:12 +0200
+
+doublecmd (0.7.3-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Drop fix-spelling-errors.patch, included upstream.
+
+ -- Graham Inggs <ginggs@debian.org>  Tue, 19 Jul 2016 11:19:17 +0200
+
+doublecmd (0.7.2-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Drop debian/clean, included upstream.
+  * Update fix-spelling-errors.patch, partially included upstream.
+  * Bump Standards-Version to 3.9.8, no further changes.
+
+ -- Graham Inggs <ginggs@debian.org>  Mon, 13 Jun 2016 13:08:12 +0200
+
+doublecmd (0.7.1-2) unstable; urgency=medium
+
+  * Remove doublecmd-*-dbg packages, they contained no debug symbols.
+  * Move doublecmd.zdli files from doublecmd-*-dbg packages.
+  * Add breaks/replaces against old doublecmd-*-dbg packages.
+  * Add plugins/wcx/zip/lib/abresstring.rsj to debian/clean.
+  * Update Lintian overrides.
+  * Fix various spelling and grammar errors reported by Lintian.
+
+ -- Graham Inggs <ginggs@debian.org>  Thu, 07 Apr 2016 13:04:12 +0200
+
+doublecmd (0.7.1-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Drop upstream-fix-arm64-ftbfs.patch, included upstream.
+
+ -- Graham Inggs <ginggs@debian.org>  Tue, 29 Mar 2016 14:56:00 +0200
+
+doublecmd (0.7.0-1) unstable; urgency=medium
+
+  * New upstream release:
+    - add inode/directory MimeType to doublecmd.desktop (Closes: #807570)
+    - fix scrolling through files with long names is slow (Closes: #807257)
+    - fix FTBFS with FPC 3.0 and Lazarus 1.6 (Closes: #818123)
+  * Fix FTBFS on arm64, thanks Edmund Grimley Evans
+    and Alexander Koblov (Closes: #803984)
+  * Remove doublecmd-common.menu, as per #741573.
+  * Use secure URIs for VCS fields.
+  * Update d/copyright.
+  * Update Lintian overrides for doublecmd-plugins.
+  * Bump Standards-Version to 3.9.7, no further changes.
+
+ -- Graham Inggs <ginggs@debian.org>  Tue, 15 Mar 2016 13:48:55 +0200
+
+doublecmd (0.6.6-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Let doublecmd-common suggest libffmpegthumbnailer4 (per upstream).
+  * Do not display splash screen at startup.
+
+ -- Graham Inggs <ginggs@debian.org>  Tue, 13 Oct 2015 16:27:23 +0200
+
+doublecmd (0.6.5-2) unstable; urgency=medium
+
+  * Let doublecmd-common recommend doublecmd-gtk | doublecmd-qt
+    for users who install the -common package by mistake.
+
+ -- Graham Inggs <ginggs@debian.org>  Wed, 07 Oct 2015 16:58:38 +0200
+
+doublecmd (0.6.5-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Update my email address.
+
+ -- Graham Inggs <ginggs@debian.org>  Tue, 08 Sep 2015 11:47:54 +0200
+
+doublecmd (0.6.4-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Convert upstream HTML changelog to text and ship it,
+    add Build-Depends on html2text.
+
+ -- Graham Inggs <graham@nerve.org.za>  Mon, 20 Jul 2015 11:51:00 +0200
+
+doublecmd (0.6.2-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Upload to unstable.
+  * Refresh d/patches/hide-build-info.patch.
+  * Add comments to Lintian overrides.
+  * Update d/copyright with some missed files,
+    fix some spelling and capitalization errors.
+
+ -- Graham Inggs <graham@nerve.org.za>  Tue, 19 May 2015 16:56:20 +0200
+
+doublecmd (0.6.1-1) experimental; urgency=medium
+
+  * New upstream release.
+  * Drop patches included upstream:
+    - d/patches/clean-plugins-static-libs.patch
+    - d/patches/disable-pic-on-arm.patch
+    - d/patches/fpc-arm-workaround.patch
+  * Update d/copyright for renamed and new files src/udiff*.pas.
+
+ -- Graham Inggs <graham@nerve.org.za>  Tue, 31 Mar 2015 12:07:48 +0200
+
+doublecmd (0.6.0-3) experimental; urgency=medium
+
+  * Revert patch to not generate debug line info on
+    big-endian architectures.
+  * Work around ARM code generation bug in fpc < 3.0.1.
+
+ -- Graham Inggs <graham@nerve.org.za>  Fri, 27 Feb 2015 14:26:01 +0200
+
+doublecmd (0.6.0-2) experimental; urgency=low
+
+  * Disable PIC on ARM architectures.
+  * Do not generate debug line info on big-endian architectures.
+  * Update d/control: add Suggests on rabbitvcs-core.
+  * Update d/copyright: new directory libraries/src/libbz2.
+  * Update Lintian overrides.
+
+ -- Graham Inggs <graham@nerve.org.za>  Wed, 18 Feb 2015 11:09:44 +0200
+
+doublecmd (0.6.0-1) experimental; urgency=medium
+
+  * New upstream release.
+  * Drop d/patches/hide-lazarus-revision.patch included upstream,
+    refresh remaining patches.
+  * New patch d/patches/clean-plugins-static-libs.patch
+    to clean static libs from plugins directories.
+  * Update d/rules:
+    - do not rename files doublecmd.pb.po and
+      doublecmd.zh.po that no longer exist
+    - strip plugins because dh_strip cannot handle non-standard extensions
+  * Update d/copyright:
+    - update copyright years
+    - add copyright information for new file
+      plugins/wcx/zip/fparchive/abxz.pas
+    - remove copyright information for removed directory
+      libraries/src/libmime/
+
+ -- Graham Inggs <graham@nerve.org.za>  Mon, 16 Feb 2015 14:09:06 +0200
+
+doublecmd (0.5.11-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Drop patches included upstream, refresh remaining patches.
+  * Update d/rules:
+    - do not delete symlink for doublecmd-help
+    - remove new convenience copy of qt4.pas before building
+  * Update d/copyright:
+    - update copyright years
+    - add copyright information for newly added qt4.pas
+    - use dh_make copyright templates
+  * Update d/control: add Suggests on mplayer2.
+  * Update Lintian overrides.
+
+ -- Graham Inggs <graham@nerve.org.za>  Tue, 07 Oct 2014 15:58:52 +0200
+
+doublecmd (0.5.10-2) unstable; urgency=medium
+
+  * Add d/patches/hide-lazarus-revision.patch to build without lazarus-src
+  * Update d/control:
+    - drop build-depends on lazarus-src
+    - clean up build-depends on lcl, lcl-gtk2 and lcl-qt4
+
+ -- Graham Inggs <graham@nerve.org.za>  Mon, 02 Jun 2014 14:04:06 +0200
+
+doublecmd (0.5.10-1) unstable; urgency=medium
+
+  [ Graham Inggs ]
+  * New upstream release (Closes: #746015)
+  * Refresh d/patches/hide-build-info.patch.
+
+  [ Paul Gevers ]
+  * Update d/copyright with newly added file
+  * Drop hack in fix_build.sh*.patch and convert it to not build the
+    lazarus components, as that is fixed in Lazarus now. Renamed patch
+    to dont_build_lazarus_components.patch
+
+ -- Paul Gevers <elbrus@debian.org>  Sun, 18 May 2014 15:56:14 +0200
+
+doublecmd (0.5.9-2) unstable; urgency=medium
+
+  * Tweak fix_build.sh_for_lazarus-1.2.patch, fix FTBFS on i386.
+
+ -- Graham Inggs <graham@nerve.org.za>  Tue, 15 Apr 2014 15:00:27 +0200
+
+doublecmd (0.5.9-1) unstable; urgency=medium
+
+  [ Graham Inggs ]
+  * New upstream.
+  * Update d/control:
+    - add Depends on desktop-file-utils
+    - update Maintainer and Vcs-* fields for
+      Pascal Packaging Team maintenance
+  * Update d/patches: remove link-with-as-needed.patch and
+    add-keywords-to-desktop-file.patch, included upstream.
+  * Remove unnecessary d/doublecmd-*.dir files.
+  * Do not install /usr/lib/doublecmd/doc.
+
+  [ Paul Gevers ]
+  * Add add_set-e_to_build_scripts.patch to let the build fail on failure
+  * Add fix_build.sh_for_lazarus-1.2.patch and
+    remove_red-haring__dont_install_.so_files.patch to prevent FTBFS
+    (Closes: 741792)
+
+ -- Paul Gevers <elbrus@debian.org>  Mon, 14 Apr 2014 21:51:22 +0200
+
+doublecmd (0.5.8-1) unstable; urgency=low
+
+  * New upstream.
+  * Link with '--as-needed' flag to avoid unnecessary linking.
+  * Add Keywords entry to desktop file.
+  * Update d/control: bump Standards-Version to 3.9.5, no changes.
+
+ -- Graham Inggs <graham@nerve.org.za>  Sun, 19 Jan 2014 12:46:33 +0200
+
+doublecmd (0.5.7-2) unstable; urgency=low
+
+  * Fix FTBFS without writable HOME directory (Closes: #725647)
+
+ -- Graham Inggs <graham@nerve.org.za>  Mon, 07 Oct 2013 11:44:11 +0200
+
+doublecmd (0.5.7-1) unstable; urgency=low
+
+  * Initial release (Closes: #718778)
+
+ -- Graham Inggs <graham@nerve.org.za>  Wed, 25 Sep 2013 10:48:13 +0200
--- doublecmd-1.3.0~0+svn13180+git0e8e4630.orig/debian/compat
+++ doublecmd-1.3.0~0+svn13180+git0e8e4630/debian/compat
@@ -0,0 +1 @@
+9
--- doublecmd-1.3.0~0+svn13180+git0e8e4630.orig/debian/control
+++ doublecmd-1.3.0~0+svn13180+git0e8e4630/debian/control
@@ -0,0 +1,97 @@
+Source: doublecmd
+Section: utils
+Priority: optional
+Maintainer: Pascal Packaging Team <pkg-pascal-devel@lists.alioth.debian.org>
+Uploaders: Graham Inggs <ginggs@debian.org>
+Build-Depends: debhelper (>= 9),
+               fp-utils (>= 3.2.2),
+               fpc (>= 3.2.2),
+               lcl (>= 4.2),
+               lcl-gtk2,
+               lcl-qt5,
+               lcl-units,
+               lcl-utils,
+               libbz2-dev,
+               libdbus-1-dev,
+               libglib2.0-dev,
+               libgtk2.0-dev,
+               libqt5pas-dev,
+               libfontconfig-dev
+Standards-Version: 4.5.0
+Rules-Requires-Root: no
+Vcs-Git: https://salsa.debian.org/pascal-team/doublecmd.git
+Vcs-Browser: https://salsa.debian.org/pascal-team/doublecmd
+Homepage: https://doublecmd.sourceforge.io
+
+Package: doublecmd-gtk
+Architecture: any
+Depends: doublecmd-common (= ${source:Version}),
+         doublecmd-plugins (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Provides: doublecmd
+Conflicts: doublecmd
+Replaces: doublecmd
+Description: twin-panel (commander-style) file manager (GTK2)
+ Double Commander is a cross platform open source file manager
+ with two panels side by side. It is inspired by Total Commander
+ and features some new ideas.
+ .
+ Support for RAR archives can be enabled by installing the
+ libunrar5 package from non-free.
+ .
+ This package contains the GTK2 user interface.
+
+Package: doublecmd-qt
+Architecture: any
+Depends: doublecmd-common (= ${source:Version}),
+         doublecmd-plugins (= ${binary:Version}),
+         ${misc:Depends},
+         ${shlibs:Depends}
+Provides: doublecmd
+Conflicts: doublecmd
+Replaces: doublecmd
+Description: twin-panel (commander-style) file manager (Qt5)
+ Double Commander is a cross platform open source file manager
+ with two panels side by side. It is inspired by Total Commander
+ and features some new ideas.
+ .
+ Support for RAR archives can be enabled by installing the
+ libunrar5 package from non-free.
+ .
+ This package contains the Qt5 user interface.
+
+Package: doublecmd-plugins
+Architecture: any
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: twin-panel (commander-style) file manager (plugins)
+ Double Commander is a cross platform open source file manager
+ with two panels side by side. It is inspired by Total Commander
+ and features some new ideas.
+ .
+ Support for RAR archives can be enabled by installing the
+ libunrar5 package from non-free.
+ .
+ This package contains plugins.
+
+Package: doublecmd-common
+Architecture: all
+Multi-Arch: foreign
+Recommends: doublecmd-gtk | doublecmd-qt
+Depends: desktop-file-utils, ${misc:Depends}
+Suggests: doublecmd-help-en | doublecmd-help,
+          libffmpegthumbnailer4v5,
+          libunrar5,
+          mplayer,
+          rabbitvcs-core,
+          xterm | x-terminal-emulator
+Description: twin-panel (commander-style) file manager
+ Double Commander is a cross platform open source file manager
+ with two panels side by side. It is inspired by Total Commander
+ and features some new ideas.
+ .
+ Support for RAR archives can be enabled by installing the
+ libunrar-dev package from non-free.
+ .
+ This package contains common files.
--- doublecmd-1.3.0~0+svn13180+git0e8e4630.orig/debian/copyright
+++ doublecmd-1.3.0~0+svn13180+git0e8e4630/debian/copyright
@@ -0,0 +1,451 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Double Commander
+Upstream-Contact: Alexander Koblov <alexx2000@mail.ru>
+Source: https://doublecmd.sourceforge.io/
+
+Files: *
+Copyright: 2006-2020 Alexander Koblov <alexx2000@mail.ru>
+           2008 Dmitry Kolomiets <B4rr4cuda@rambler.ru>
+           2009-2013 Przemysław Nagay <cobines@gmail.com>
+License: GPL-2.0+
+
+Files: components/CmdLine/*
+Copyright: 2007 Julian Schutsch <julian@julian-schutsch.de>
+License: GPL-3.0+
+
+Files: components/lclextensions/*
+Copyright: 2007 Luiz Américo Pereira Câmara <pascalive@bol.com.br>
+License: LGPL-2.0+
+
+Files: components/dcpcrypt/*
+Copyright: 1999-2002 David Barton <crypto@cityinthesky.co.uk>
+License: X11
+
+Files: components/dcpcrypt/Hashes/Private/*
+       components/dcpcrypt/Random/isaac.pas
+Copyright: 2002-2017 Wolfgang Ehrhardt <info@wolfgang-ehrhardt.de>
+License: Zlib
+
+Files: components/multithreadprocs/*
+Copyright: 2008 Mattias Gaertner <mattias@freepascal.org>
+License: LGPL-2.1+
+
+Files: components/gifanim/*
+Copyright: 2009 Laurent Jacques
+License: GPL-2.0+
+
+Files: components/virtualtreeview/*
+Copyright: 2000-2003 Mike Lischke <public@delphi-gems.com>
+           2002-2004 Ralf Junker <delphi@zeitungsjunge.de>
+           2007 Marco Zehe <marco.zehe@googlemail.com>
+License: MPL-1.1 or LGPL-2.1+
+
+Files: components/viewer/viewercontrol.pas
+Copyright: 2003-2004 Radek Červinka <radek.cervinka@centrum.cz>
+           2006-2013 Alexander Koblov <alexx2000@mail.ru>
+License: GPL-2.0+
+
+Files: components/viewer/MappingFile.pas
+Copyright: 2005 Razumikhin Dmitry <razumikhin_d@mail.ru>
+License: LGPL-2.0+
+
+Files: components/chsdet/*
+Copyright: 2006 Nick Yakowlew <ya_nick@users.sourceforge.net>
+License: LGPL-2.1+
+
+Files: libraries/src/libbz2/*
+       plugins/wcx/zip/src/fparchive/abbzip2.pas
+Copyright: 1996-2010 Julian Seward <jseward@bzip.org>
+License: BSD-4-clause~bzip2
+
+Files: plugins/wfx/ftp/synapse/*
+Copyright: 1999-2012 Lukas Gebauer
+License: BSD-3-clause
+
+Files: plugins/wfx/ftp/synapse/ssl_winssl_lib.pas
+Copyright: 2008 Boris Krasnovskiy
+           2013 Alexander Koblov <alexx2000@mail.ru>
+License: GPL-2.0+
+
+Files: plugins/wfx/ftp/synapse/ssl_gnutls_lib.pas
+Copyright: 2002 Andrew McDonald <andrew@mcdonald.org.uk>
+           2004-2006 Free Software Foundation
+           2013 Alexander Koblov <alexx2000@mail.ru>
+License: GPL-2.0+
+
+Files: plugins/wfx/ftp/src/*
+       src/platform/unix/ujpegthumb.pas
+       src/platform/unix/ukeyfile.pas
+       src/platform/unix/upython.pas
+       components/doublecmd/dcntfslinks.pas
+       src/platform/win/uthumbnailprovider.pas
+Copyright: 2009-2017 Alexander Koblov <alexx2000@mail.ru>
+License: LGPL-2.1+
+
+Files: plugins/wdx/deb_wdx/src/minigzip.pas
+Copyright: 1995-1998 Jean-loup Gailly
+           1998 Jacques Nomssi Nzali
+License: Zlib
+
+Files: plugins/wdx/deb_wdx/src/deb_wdx_intf.pas
+Copyright: 2005 Ralgh Young <yang.guilong@gmail.com>
+License: GPL-2.0+
+
+Files: plugins/wfx/gvfs/*
+Copyright: 2008-2009 Tomas Bzatek <tbzatek@users.sourceforge.net>
+           2009-2010 Alexander Koblov <alexx2000@mail.ru>
+License: LGPL-2.0+
+
+Files: plugins/wdx/rpm_wdx/*
+       plugins/wcx/rpm/*
+       plugins/wcx/cpio/*
+Copyright: 2000-2002 Mandryka Yurij <braingroup@hotmail.ru>
+           2007 Alexander Koblov <alexx2000@mail.ru>
+License: GPL-2.0+
+
+Files: plugins/wcx/sevenzip/*
+Copyright: 2014-2015 Alexander Koblov <alexx2000@mail.ru>
+License: LGPL-2.1+
+
+Files: plugins/wcx/sevenzip/src/jcl/common/JclCompression.pas
+Copyright: 2004-2014 Matthias Thoma, Olivier Sannie (obones),
+           Florent Ouchet (outchy), Jan Goyvaerts (jgsoft),
+           Uwe Schuster (uschuster)
+License: MPL-1.1 or LGPL-2.1+
+
+Files: plugins/wcx/sevenzip/src/jcl/windows/sevenzip.pas
+       plugins/wcx/zip/src/lzma/*
+Copyright: 1999-2008 Igor Pavlov
+License: LGPL-2.1+
+
+Files: plugins/wcx/unbz2/bzip2/bzip2.pas
+Copyright: 2002 by Daniel Mantione
+           2007-2009 Alexander Koblov <alexx2000@mail.ru>
+License: GPL-2.0+
+
+Files: plugins/wcx/zip/src/fparchive/*
+       plugins/wcx/zip/src/ZipApp.pas
+Copyright: 1997-2002 TurboPower Software
+           2007-2012 Alexander Koblov <alexx2000@mail.ru>
+License: MPL-1.1
+
+Files: plugins/wcx/zip/src/fparchive/abxz.pas
+Copyright: 2014-2015 Alexander Koblov <alexx2000@mail.ru>
+License: X11
+
+Files: plugins/wlx/WlxMplayer/src/qt4.pas
+Copyright: 2005-2011 Jan Van hijfte
+License: LGPL-3.0+
+
+Files: scripts/rabbit-vcs.py
+Copyright: 2009 Jason Heeris <jason.heeris@gmail.com>
+           2009 Bruce van der Kooij <brucevdkooij@gmail.com>
+           2009 Adam Plumb <adamplumb@gmail.com>
+           2014 Alexander Koblov <alexx2000@mail.ru>
+License: GPL-2.0+
+
+Files: src/platform/unix/linux/uudev.pas
+Copyright: 2008 David Zeuthen <david@fubar.dk>
+           2014 Alexander Koblov <alexx2000@mail.ru>
+License: GPL-2.0+
+
+Files: src/platform/unix/uusersgroups.pas
+Copyright: 2003 Martin Matusu <xmat@volny.cz>
+License: GPL-2.0+
+
+Files: src/platform/unix/mime/umimetype.pas
+Copyright: 2007 Houng Jen Yee (PCMan) <pcman.tw@gmail.com>
+           2014-2015 Alexander Koblov <alexx2000@mail.ru>
+License: GPL-2.0+
+
+Files: src/platform/win/ugdiplus.pas
+Copyright: 2008 Alexander Koblov <alexx2000@mail.ru>
+License: LGPL-2.0+
+
+Files: src/fsyncdirsdlg.pas
+Copyright: 2013 Anton Panferov <ast.a_s@mail.ru>
+           2014 Alexander Koblov <alexx2000@mail.ru>
+License: GPL-2.0+
+
+Files: src/synhighlighterlua.pas
+Copyright: 2005 Zhou Kan <textrush@tom.com>
+License: MPL-1.1 or GPL-2.0+
+
+Files: src/uhighlighterprocs.pas
+Copyright: 2000 Michael Hieke
+License: MPL-1.1 or GPL-2.0+
+
+Files: src/uparitercontrols.pas
+Copyright: 2004 Flavio Etrusco
+           2011 Alexander Koblov <alexx2000@mail.ru>
+License: BSD-2-clause
+
+Files: src/ufindthread.pas
+       src/ffileproperties.pas
+       src/uColorExt.pas
+       src/ufindfiles.pas
+       src/uglobs.pas
+       src/fFindDlg.pas
+       src/fmain.pas
+Copyright: 2002 Peter Cernoch <pcernoch@volny.cz>
+           2003-2004 Radek Červinka <radek.cervinka@centrum.cz>
+           2003 Martin Matusu <xmat@volny.cz>
+           2006-2012 Alexander Koblov <alexx2000@mail.ru>
+           2008 Dmitry Kolomiets <B4rr4cuda@rambler.ru>
+           2008 Vitaly Zotov <vitalyzotov@mail.ru>
+           2010 Przemysław Nagay <cobines@gmail.com>
+License: GPL-2.0+
+
+Files: src/udiffond.pas
+       src/udiffonp.pas
+Copyright: 2001-2009 Angus Johnson <angusj@myrealbox.com>
+License: other~tdiff
+ The code in the TDiff component is released as freeware
+ provided you agree to the following terms & conditions:
+ 1. the copyright notice, terms and conditions are left unchanged
+ 2. modifications to the code by other authors must be
+    clearly documented and accompanied by the modifier's name.
+ 3. the TDiff component may be freely compiled into binary
+    format and no acknowledgement is required. However, a
+    discrete acknowledgement would be appreciated (eg. in a
+    program's 'About Box').
+
+Files: src/uresample.pas
+Copyright: 1997-1998 Anders Melander <anders@melander.dk>
+           2009 Alexander Koblov <alexx2000@mail.ru>
+License: other~uresample
+ This software is copyrighted as noted above.  It may be freely copied,
+ modified, and redistributed, provided that the copyright notice(s) is
+ preserved on all copies.
+ .
+ There is no warranty or other guarantee of fitness for this software,
+ it is provided solely "as is".  Bug reports or fixes may be sent
+ to the author, who may or may not act on them as he desires.
+ .
+ You may not include this software in a program or other software product
+ without supplying the source, or without informing the end-user that the
+ source is available for no extra charge.
+ .
+ If you modify this software, you should include a notice in the "Revision
+ history" section giving the name of the person performing the modification,
+ the date of modification, and the reason for such modification.
+
+Files: debian/*
+Copyright: 2010-2013 Alexander Koblov <alexx2000@mail.ru>
+           2013-2020 Graham Inggs <ginggs@debian.org>
+License: GPL-2.0+
+
+License: GPL-2.0+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+License: GPL-3.0+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
+
+License: LGPL-2.0+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in "/usr/share/common-licenses/LGPL-2".
+
+License: LGPL-2.1+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in "/usr/share/common-licenses/LGPL-2.1".
+
+License: LGPL-3.0+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 3 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in "/usr/share/common-licenses/LGPL-3".
+
+License: BSD-2-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
+ THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: BSD-3-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ .
+ 3. Neither the name of the University nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+License: BSD-4-clause~bzip2
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ .
+ 2. The origin of this software must not be misrepresented; you must
+    not claim that you wrote the original software.  If you use this
+    software in a product, an acknowledgment in the product
+    documentation would be appreciated but is not required.
+ .
+ 3. Altered source versions must be plainly marked as such, and must
+    not be misrepresented as being the original software.
+ .
+ 4. The name of the author may not be used to endorse or promote
+    products derived from this software without specific prior written
+    permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: MPL-1.1
+ The contents of this file are subject to the Mozilla Public License Version
+ 1.1 (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+ http://www.mozilla.org/MPL/
+ .
+ Software distributed under the License is distributed on an "AS IS" basis,
+ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ for the specific language governing rights and limitations under the
+ License.
+
+License: X11
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+License: Zlib
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the author be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented; you must not
+    claim that you wrote the original software. If you use this software
+    in a product, an acknowledgment in the product documentation would be
+    appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+    misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
--- doublecmd-1.3.0~0+svn13180+git0e8e4630.orig/debian/doublecmd-gtk.lintian-overrides
+++ doublecmd-1.3.0~0+svn13180+git0e8e4630/debian/doublecmd-gtk.lintian-overrides
@@ -0,0 +1,4 @@
+# From names of objects in lcl-units, not visible to the user
+doublecmd-gtk: spelling-error-in-binary usr/lib/doublecmd/doublecmd Childs Children
+doublecmd-gtk: spelling-error-in-binary usr/lib/doublecmd/doublecmd occured occurred
+doublecmd-gtk: spelling-error-in-binary usr/lib/doublecmd/doublecmd aCount account
--- doublecmd-1.3.0~0+svn13180+git0e8e4630.orig/debian/doublecmd-plugins.lintian-overrides
+++ doublecmd-1.3.0~0+svn13180+git0e8e4630/debian/doublecmd-plugins.lintian-overrides
@@ -0,0 +1,4 @@
+# These are plugins, not shared libraries
+doublecmd-plugins: shared-lib-without-dependency-information usr/lib/doublecmd/plugins/dsx/dsxlocate/dsxlocate.dsx
+doublecmd-plugins: shared-lib-without-dependency-information usr/lib/doublecmd/plugins/wdx/deb_wdx/deb_wdx.wdx
+doublecmd-plugins: shared-lib-without-dependency-information usr/lib/doublecmd/plugins/wdx/rpm_wdx/rpm_wdx.wdx
--- doublecmd-1.3.0~0+svn13180+git0e8e4630.orig/debian/doublecmd-qt.lintian-overrides
+++ doublecmd-1.3.0~0+svn13180+git0e8e4630/debian/doublecmd-qt.lintian-overrides
@@ -0,0 +1,3 @@
+# From names of objects in lcl-units, not visible to the user
+doublecmd-qt: spelling-error-in-binary usr/lib/doublecmd/doublecmd Childs Children
+doublecmd-qt: spelling-error-in-binary usr/lib/doublecmd/doublecmd aCount account
--- doublecmd-1.3.0~0+svn13180+git0e8e4630.orig/debian/rules
+++ doublecmd-1.3.0~0+svn13180+git0e8e4630/debian/rules
@@ -0,0 +1,66 @@
+#!/usr/bin/make -f
+
+# Set temporary HOME for lazarus primary config directory
+export HOME=$(CURDIR)/tmphome
+
+%:
+	dh $@
+
+override_dh_install:
+	# Remove convenience copy of Free Pascal Qt4 binding, use libqt4pas-dev instead
+	rm -f plugins/wlx/WlxMplayer/src/qt4.pas
+
+	# Build GTK2 version
+	./build.sh release gtk2
+	./install/linux/install.sh --install-prefix=$(CURDIR)/debian/doublecmd-common
+	./clean.sh
+
+	# Build Qt5 version
+	./build.sh release qt5
+	./install/linux/install.sh --install-prefix=$(CURDIR)/debian/doublecmd-qt-temp
+	./clean.sh
+
+	# Separate GTK2-specific files
+	mkdir -p $(CURDIR)/debian/doublecmd-gtk/usr/lib/doublecmd/plugins
+	mv $(CURDIR)/debian/doublecmd-common/usr/lib/doublecmd/doublecmd $(CURDIR)/debian/doublecmd-gtk/usr/lib/doublecmd/
+	mv $(CURDIR)/debian/doublecmd-common/usr/lib/doublecmd/plugins/wlx $(CURDIR)/debian/doublecmd-gtk/usr/lib/doublecmd/plugins/
+	mv $(CURDIR)/debian/doublecmd-common/usr/lib/doublecmd/doublecmd.zdli $(CURDIR)/debian/doublecmd-gtk/usr/lib/doublecmd/
+
+	# Separate Qt5-specific files
+	mkdir -p $(CURDIR)/debian/doublecmd-qt/usr/lib/doublecmd/plugins
+	mv $(CURDIR)/debian/doublecmd-qt-temp/usr/lib/doublecmd/doublecmd $(CURDIR)/debian/doublecmd-qt/usr/lib/doublecmd/
+	mv $(CURDIR)/debian/doublecmd-qt-temp/usr/lib/doublecmd/plugins/wlx $(CURDIR)/debian/doublecmd-qt/usr/lib/doublecmd/plugins/
+	mv $(CURDIR)/debian/doublecmd-qt-temp/usr/lib/doublecmd/doublecmd.zdli $(CURDIR)/debian/doublecmd-qt/usr/lib/doublecmd/
+	rm -rf $(CURDIR)/debian/doublecmd-qt-temp/
+
+	# Separate plugins
+	mkdir -p $(CURDIR)/debian/doublecmd-plugins/usr/lib/doublecmd
+	mv $(CURDIR)/debian/doublecmd-common/usr/lib/doublecmd/plugins $(CURDIR)/debian/doublecmd-plugins/usr/lib/doublecmd
+
+	# Clean up common files
+	rm -rf $(CURDIR)/debian/doublecmd-common/usr/share/doublecmd/doc
+	find $(CURDIR)/debian/doublecmd-common/usr/share/ -type f | xargs chmod a-x ;
+
+	# Install icons for AppStream
+	rm -rf $(CURDIR)/debian/doublecmd-common/usr/share/pixmaps/
+	rm -f $(CURDIR)/debian/doublecmd-common/usr/share/icons/hicolor/scalable/apps/doublecmd.svg
+	cp $(CURDIR)/debian/doublecmd-common/usr/share/doublecmd/pixmaps/mainicon/alt/dcfinal.svg $(CURDIR)/debian/doublecmd-common/usr/share/icons/hicolor/scalable/apps/doublecmd.svg
+	mkdir -p $(CURDIR)/debian/doublecmd-common/usr/share/icons/hicolor/128x128/apps
+	cp $(CURDIR)/debian/doublecmd-common/usr/share/doublecmd/pixmaps/mainicon/alt/128px-dcfinal.png $(CURDIR)/debian/doublecmd-common/usr/share/icons/hicolor/128x128/apps/doublecmd.png
+	mkdir -p $(CURDIR)/debian/doublecmd-common/usr/share/icons/hicolor/256x256/apps
+	cp $(CURDIR)/debian/doublecmd-common/usr/share/doublecmd/pixmaps/mainicon/alt/256px-dcfinal.png $(CURDIR)/debian/doublecmd-common/usr/share/icons/hicolor/256x256/apps/doublecmd.png
+
+	dh_install
+
+override_dh_strip:
+	# Strip plugins because dh_strip cannot handle non-standard extensions (bug #35733)
+	find $(CURDIR)/debian/doublecmd-*/usr/lib/doublecmd/plugins/ -name '*.w?x' -o -name '*.dsx' | \
+		xargs strip --remove-section=.comment --strip-unneeded ;
+	dh_strip
+
+override_dh_clean:
+	./clean.sh
+
+	# Clean up temporary HOME
+	rm -rf $(CURDIR)/tmphome
+	dh_clean
