Add qttranslations package
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 22 Aug 2017 09:56:21 +0000 (11:56 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 22 Aug 2017 09:56:21 +0000 (11:56 +0200)
* configure.ac: Define qttranslations.
* packages/packages.current (qttranslations): New.
* src/Makefile.am: Define qttranslations. Add some hacks.
* src/gpg4win.mk.in, src/config.nsi.in, src/inst-sections.nsi:
Add qttranslations.
* src/inst-qttranslations.nsi, src/uninst-qttranslations.nsi: New.

configure.ac
packages/packages.current
src/Makefile.am
src/config.nsi.in
src/gpg4win.mk.in
src/inst-qttranslations.nsi [new file with mode: 0644]
src/inst-sections.nsi
src/uninst-qttranslations.nsi [new file with mode: 0644]

index 1a31dff..558dd62 100644 (file)
@@ -343,11 +343,12 @@ GPG4WIN_BPKG_BINSRC([kde-l10n])
 # Qt related stuff.
 GPG4WIN_SPKG([qtbase], [libpng])
 GPG4WIN_SPKG([qttools], [qtbase])
+GPG4WIN_SPKG([qttranslations], [qttools])
 GPG4WIN_SPKG([qtwinextras], [qtbase])
 GPG4WIN_SPKG([qtsvg], [qtbase])
 GPG4WIN_SPKG([boost], [expat zlib bzip2])
 GPG4WIN_KDEPKG([breeze-icons], [extra-cmake-modules qtbase])
-GPG4WIN_KDEPKG([kleopatra], [gnupg-w32 breeze-icons kxmlgui libkleo kde-l10n kitemmodels])
+GPG4WIN_KDEPKG([kleopatra], [gnupg-w32 breeze-icons kxmlgui libkleo kde-l10n kitemmodels qttranslations])
 GPG4WIN_KDEPKG([extra-cmake-modules])
 GPG4WIN_KDEPKG([kconfig], [qtbase qttools extra-cmake-modules])
 GPG4WIN_KDEPKG([ki18n], [qtbase gettext qttools extra-cmake-modules])
index 07d3a39..7a9bc4b 100644 (file)
@@ -377,6 +377,13 @@ name qtsvg-5.8.0.tar.xz
 file 5.8/5.8.0/submodules/qtsvg-opensource-src-5.8.0.tar.xz
 chk 9873191c211ab4da9c0bc47b1e3549f475db4d448bba3175e0f86b24eefadc89
 
+# Qt svg
+# last changed: 2017-08-22
+# by: ah
+# verified: HTTPS https://download.qt.io/official_releases/qt/5.8/5.8.0/submodules/qttranslations-opensource-src-5.8.0.tar.xz.sha256
+name qttranslations-5.8.0.tar.xz
+file 5.8/5.8.0/submodules/qttranslations-opensource-src-5.8.0.tar.xz
+chk 3b7cf72ec50bc2a02bf4e4427b184febac909dba0e02e1861321ca1629c3fc2e
 
 # KDE Frameworks generated by gen-frameworks.sh
 
index d4de923..a3e95d2 100644 (file)
@@ -81,6 +81,7 @@ EXTRA_DIST = pkg-config gpg4win.nsi gpg4win-src.nsi \
         inst-kde-l10n.nsi uninst-kde-l10n.nsi \
         inst-qtsvg.nsi uninst-qtsvg.nsi \
         inst-qttools.nsi uninst-qttools.nsi \
+        inst-qttranslations.nsi uninst-qttranslations.nsi \
         inst-boost.nsi uninst-boost.nsi \
         inst-extra-cmake-modules.nsi uninst-extra-cmake-modules.nsi \
         inst-final.nsi index.theme \
@@ -116,7 +117,7 @@ gpg4win_spkgs = glib libffi gdk-pixbuf gtk+ \
                pinentry libassuan \
                w32pth paperkey regex libiconv gettext
 
-gpg4win_qtpkgs = qtbase qttools qtwinextras qtsvg
+gpg4win_qtpkgs = qtbase qttools qtwinextras qtsvg qttranslations
 
 # Source packages following the KDE pattern
 gpg4win_kdepkgs = kconfig kwidgetsaddons ki18n extra-cmake-modules \
@@ -317,7 +318,9 @@ gpg4win_pkg_qtbase_make_args = \
 # Qmake still writes debug names in pkgconfig files.
 define gpg4win_pkg_qtbase_post_install
        (cd $$$${pkgbdir}; \
-        make install)
+        make install; \
+        echo "[Paths]" > $$$${pkgidir}/bin/qt.conf; \
+        echo "Prefix = .." >> $$$${pkgidir}/bin/qt.conf)
 endef
 
 
@@ -353,6 +356,14 @@ define gpg4win_pkg_qtsvg_post_install
   mv $$$${pkgidir}/lib/*.dll $$$${pkgidir}/bin;)
 endef
 
+gpg4win_pkg_qttranslations_configure = \
+       "$(idir)/bin/qmake" ../$$$${pkg_version}
+
+define gpg4win_pkg_qttranslations_post_install
+ ( rm -f $$$${pkgidir}/qttranslations; \
+   cp -r $$$${pkgbdir}/translations $$$${pkgidir}/qttranslations;)
+endef
+
 gpg4win_pkg_kleopatra_configure = \
     -DFORCE_DISABLE_KCMUTILS=ON \
     -DDISABLE_KWATCHGNUPG=ON \
index 39648c7..98dc0d0 100644 (file)
 !define gpg4win_pkg_qtsvg @gpg4win_pkg_qtsvg@
 !define gpg4win_pkg_qtsvg_version @gpg4win_pkg_qtsvg_version@
 
+@HAVE_PKG_QTTRANSLATIONS@
+!define gpg4win_pkg_qttranslations @gpg4win_pkg_qttranslations@
+!define gpg4win_pkg_qttranslations_version @gpg4win_pkg_qttranslations_version@
+
 @HAVE_PKG_KDE_L10N@
 !define gpg4win_pkg_kde_l10n @gpg4win_pkg_kde_l10n@
 !define gpg4win_pkg_kde_l10n_version @gpg4win_pkg_kde_l10n_version@
index 08c29a1..2cd8c7e 100644 (file)
@@ -122,6 +122,8 @@ define DEFLATE_macro
             $(TAR) -xJ --transform='s,^qtwinextras-opensource-src,qtwinextras,' -f "$(1)" ;; \
           */qtsvg*.*.tar.xz)          \
             $(TAR) -xJ --transform='s,^qtsvg-opensource-src,qtsvg,' -f "$(1)" ;; \
+          */qttranslations*.*.tar.xz)          \
+            $(TAR) -xJ --transform='s,^qttranslations-opensource-src,qttranslations,' -f "$(1)" ;; \
           */boost*.*.tar.bz2)          \
             $(TAR) -xj --transform='s,^boost_1_60_0,boost-1.60.0,' -f "$(1)" ;; \
          *.tar.gz | *.tgz)             \
diff --git a/src/inst-qttranslations.nsi b/src/inst-qttranslations.nsi
new file mode 100644 (file)
index 0000000..25cc7f5
--- /dev/null
@@ -0,0 +1,138 @@
+# Copyright (C) 2017 Intevation GmbH
+#
+# This file is part of GPG4Win.
+#
+# GPG4Win 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.
+#
+# GPG4Win 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+!ifdef prefix
+!undef prefix
+!endif
+!define prefix ${ipdir}/qttranslations-${gpg4win_pkg_qttranslations_version}
+
+!ifdef DEBUG
+Section "qttranslations" SEC_qttranslations
+!else
+Section "-qttranslations" SEC_qttranslations
+!endif
+  SetOutPath "$INSTDIR"
+!ifdef SOURCES
+  File "${gpg4win_pkg_qttranslations}"
+!else
+# Needs all the files included in the qt_$lang.qm which are as of
+# qt 5.8.0 the files below.
+  SetOutPath "$INSTDIR\bin\translations"
+  File ${prefix}/qttranslations/qt_ar.qm
+  File ${prefix}/qttranslations/qtbase_ca.qm
+  File ${prefix}/qttranslations/qtbase_cs.qm
+  File ${prefix}/qttranslations/qtbase_de.qm
+  File ${prefix}/qttranslations/qtbase_en.qm
+  File ${prefix}/qttranslations/qtbase_en.ts
+  File ${prefix}/qttranslations/qtbase_fi.qm
+  File ${prefix}/qttranslations/qtbase_fr.qm
+  File ${prefix}/qttranslations/qtbase_he.qm
+  File ${prefix}/qttranslations/qtbase_hu.qm
+  File ${prefix}/qttranslations/qtbase_it.qm
+  File ${prefix}/qttranslations/qtbase_ja.qm
+  File ${prefix}/qttranslations/qtbase_ko.qm
+  File ${prefix}/qttranslations/qtbase_lv.qm
+  File ${prefix}/qttranslations/qtbase_pl.qm
+  File ${prefix}/qttranslations/qtbase_ru.qm
+  File ${prefix}/qttranslations/qtbase_sk.qm
+  File ${prefix}/qttranslations/qtbase_uk.qm
+  File ${prefix}/qttranslations/qt_ca.qm
+  File ${prefix}/qttranslations/qt_cs.qm
+  File ${prefix}/qttranslations/qt_da.qm
+  File ${prefix}/qttranslations/qt_de.qm
+  File ${prefix}/qttranslations/qt_en.qm
+  File ${prefix}/qttranslations/qt_en.ts
+  File ${prefix}/qttranslations/qt_es.qm
+  File ${prefix}/qttranslations/qt_fa.qm
+  File ${prefix}/qttranslations/qt_fi.qm
+  File ${prefix}/qttranslations/qt_fr.qm
+  File ${prefix}/qttranslations/qt_gl.qm
+  File ${prefix}/qttranslations/qt_he.qm
+  File ${prefix}/qttranslations/qt_hu.qm
+  File ${prefix}/qttranslations/qt_it.qm
+  File ${prefix}/qttranslations/qt_ja.qm
+  File ${prefix}/qttranslations/qt_ko.qm
+  File ${prefix}/qttranslations/qt_lt.qm
+  File ${prefix}/qttranslations/qtmultimedia_ca.qm
+  File ${prefix}/qttranslations/qtmultimedia_cs.qm
+  File ${prefix}/qttranslations/qtmultimedia_de.qm
+  File ${prefix}/qttranslations/qtmultimedia_en.qm
+  File ${prefix}/qttranslations/qtmultimedia_fi.qm
+  File ${prefix}/qttranslations/qtmultimedia_fr.qm
+  File ${prefix}/qttranslations/qtmultimedia_hu.qm
+  File ${prefix}/qttranslations/qtmultimedia_it.qm
+  File ${prefix}/qttranslations/qtmultimedia_ja.qm
+  File ${prefix}/qttranslations/qtmultimedia_ko.qm
+  File ${prefix}/qttranslations/qtmultimedia_pl.qm
+  File ${prefix}/qttranslations/qtmultimedia_ru.qm
+  File ${prefix}/qttranslations/qtmultimedia_sk.qm
+  File ${prefix}/qttranslations/qtmultimedia_uk.qm
+  File ${prefix}/qttranslations/qt_pl.qm
+  File ${prefix}/qttranslations/qt_pt.qm
+  File ${prefix}/qttranslations/qtquick1_ca.qm
+  File ${prefix}/qttranslations/qtquick1_cs.qm
+  File ${prefix}/qttranslations/qtquick1_de.qm
+  File ${prefix}/qttranslations/qtquick1_en.qm
+  File ${prefix}/qttranslations/qtquick1_fi.qm
+  File ${prefix}/qttranslations/qtquick1_fr.qm
+  File ${prefix}/qttranslations/qtquick1_he.qm
+  File ${prefix}/qttranslations/qtquick1_hu.qm
+  File ${prefix}/qttranslations/qtquick1_it.qm
+  File ${prefix}/qttranslations/qtquick1_ja.qm
+  File ${prefix}/qttranslations/qtquick1_ko.qm
+  File ${prefix}/qttranslations/qtquick1_pl.qm
+  File ${prefix}/qttranslations/qtquick1_ru.qm
+  File ${prefix}/qttranslations/qtquick1_sk.qm
+  File ${prefix}/qttranslations/qtquick1_uk.qm
+  File ${prefix}/qttranslations/qt_ru.qm
+  File ${prefix}/qttranslations/qtscript_ca.qm
+  File ${prefix}/qttranslations/qtscript_cs.qm
+  File ${prefix}/qttranslations/qtscript_de.qm
+  File ${prefix}/qttranslations/qtscript_en.qm
+  File ${prefix}/qttranslations/qtscript_fi.qm
+  File ${prefix}/qttranslations/qtscript_fr.qm
+  File ${prefix}/qttranslations/qtscript_he.qm
+  File ${prefix}/qttranslations/qtscript_hu.qm
+  File ${prefix}/qttranslations/qtscript_it.qm
+  File ${prefix}/qttranslations/qtscript_ja.qm
+  File ${prefix}/qttranslations/qtscript_ko.qm
+  File ${prefix}/qttranslations/qtscript_lv.qm
+  File ${prefix}/qttranslations/qtscript_pl.qm
+  File ${prefix}/qttranslations/qtscript_ru.qm
+  File ${prefix}/qttranslations/qtscript_sk.qm
+  File ${prefix}/qttranslations/qtscript_uk.qm
+  File ${prefix}/qttranslations/qt_sk.qm
+  File ${prefix}/qttranslations/qt_sl.qm
+  File ${prefix}/qttranslations/qt_sv.qm
+  File ${prefix}/qttranslations/qt_uk.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_ca.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_cs.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_de.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_en.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_fr.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_hu.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_it.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_ja.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_ko.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_pl.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_ru.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_sk.qm
+  File ${prefix}/qttranslations/qtxmlpatterns_uk.qm
+  File ${prefix}/qttranslations/qt_zh_CN.qm
+  File ${prefix}/qttranslations/qt_zh_TW.qm
+!endif
+SectionEnd
index 1a504e0..e7ce303 100644 (file)
 !ifdef HAVE_PKG_QTSVG
 !include "inst-qtsvg.nsi"
 !endif
+!ifdef HAVE_PKG_QTTRANSLATIONS
+!include "inst-qttranslations.nsi"
+!endif
 
 # These are displayed in the selection dialog.
 
 !ifdef HAVE_PKG_QTSVG
 !include "uninst-qtsvg.nsi"
 !endif
+!ifdef HAVE_PKG_QTTRANSLATIONS
+!include "uninst-qttranslations.nsi"
+!endif
 
 !include "uninst-gpg4win.nsi"
 
@@ -669,6 +675,9 @@ Function CalcDepends
 !ifdef HAVE_PKG_QTSVG
   !insertmacro UnselectSection ${SEC_qtsvg}
 !endif
+!ifdef HAVE_PKG_QTTRANSLATIONS
+  !insertmacro UnselectSection ${SEC_qttranslations}
+!endif
 
   # Always install gnupg2.  This is also ensured by putting
   # these packages in the RO section and enabling them by default, but
@@ -774,6 +783,7 @@ Function CalcDepends
   !insertmacro SelectSection ${SEC_karchive}
   !insertmacro SelectSection ${SEC_kguiaddons}
   !insertmacro SelectSection ${SEC_qtsvg}
+  !insertmacro SelectSection ${SEC_qttranslations}
   !insertmacro SelectSection ${SEC_kmime}
   !insertmacro SelectSection ${SEC_kde-l10n}
   !insertmacro SelectSection ${SEC_libkleo}
@@ -818,6 +828,7 @@ Function CalcDepends
   have_qt:
   !insertmacro SelectSection ${SEC_libpng}
   !insertmacro SelectSection ${SEC_zlib}
+  !insertmacro SelectSection ${SEC_qttranslations}
   skip_qt:
 !endif
 
diff --git a/src/uninst-qttranslations.nsi b/src/uninst-qttranslations.nsi
new file mode 100644 (file)
index 0000000..07fc436
--- /dev/null
@@ -0,0 +1,134 @@
+# Copyright (C) 2017 Intevation GmbH
+#
+# This file is part of GPG4Win.
+#
+# GPG4Win 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.
+#
+# GPG4Win 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+!ifdef prefix
+!undef prefix
+!endif
+!define prefix ${ipdir}/qtsvg-${gpg4win_pkg_qttranslations}
+
+; Uninstaller section.
+Section "-un.qttranslations"
+!ifdef SOURCES
+  Push "${gpg4win_pkg_qttranslations}"
+  Call un.SourceDelete
+!else
+  Delete "$INSTDIR\bin\translations\qt_ar.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_ca.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_cs.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_de.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_en.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_en.ts"
+  Delete "$INSTDIR\bin\translations\qtbase_fi.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_fr.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_he.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_hu.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_it.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_ja.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_ko.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_lv.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_pl.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_ru.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_sk.qm"
+  Delete "$INSTDIR\bin\translations\qtbase_uk.qm"
+  Delete "$INSTDIR\bin\translations\qt_ca.qm"
+  Delete "$INSTDIR\bin\translations\qt_cs.qm"
+  Delete "$INSTDIR\bin\translations\qt_da.qm"
+  Delete "$INSTDIR\bin\translations\qt_de.qm"
+  Delete "$INSTDIR\bin\translations\qt_en.qm"
+  Delete "$INSTDIR\bin\translations\qt_en.ts"
+  Delete "$INSTDIR\bin\translations\qt_es.qm"
+  Delete "$INSTDIR\bin\translations\qt_fa.qm"
+  Delete "$INSTDIR\bin\translations\qt_fi.qm"
+  Delete "$INSTDIR\bin\translations\qt_fr.qm"
+  Delete "$INSTDIR\bin\translations\qt_gl.qm"
+  Delete "$INSTDIR\bin\translations\qt_he.qm"
+  Delete "$INSTDIR\bin\translations\qt_hu.qm"
+  Delete "$INSTDIR\bin\translations\qt_it.qm"
+  Delete "$INSTDIR\bin\translations\qt_ja.qm"
+  Delete "$INSTDIR\bin\translations\qt_ko.qm"
+  Delete "$INSTDIR\bin\translations\qt_lt.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_ca.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_cs.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_de.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_en.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_fi.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_fr.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_hu.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_it.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_ja.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_ko.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_pl.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_ru.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_sk.qm"
+  Delete "$INSTDIR\bin\translations\qtmultimedia_uk.qm"
+  Delete "$INSTDIR\bin\translations\qt_pl.qm"
+  Delete "$INSTDIR\bin\translations\qt_pt.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_ca.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_cs.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_de.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_en.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_fi.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_fr.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_he.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_hu.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_it.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_ja.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_ko.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_pl.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_ru.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_sk.qm"
+  Delete "$INSTDIR\bin\translations\qtquick1_uk.qm"
+  Delete "$INSTDIR\bin\translations\qt_ru.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_ca.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_cs.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_de.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_en.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_fi.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_fr.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_he.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_hu.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_it.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_ja.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_ko.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_lv.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_pl.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_ru.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_sk.qm"
+  Delete "$INSTDIR\bin\translations\qtscript_uk.qm"
+  Delete "$INSTDIR\bin\translations\qt_sk.qm"
+  Delete "$INSTDIR\bin\translations\qt_sl.qm"
+  Delete "$INSTDIR\bin\translations\qt_sv.qm"
+  Delete "$INSTDIR\bin\translations\qt_uk.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_ca.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_cs.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_de.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_en.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_fr.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_hu.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_it.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_ja.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_ko.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_pl.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_ru.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_sk.qm"
+  Delete "$INSTDIR\bin\translations\qtxmlpatterns_uk.qm"
+  Delete "$INSTDIR\bin\translations\qt_zh_CN.qm"
+  Delete "$INSTDIR\bin\translations\qt_zh_TW.qm"
+  RmDir "$INSTDIR\bin\translations"
+  RmDir "$INSTDIR\bin"
+!endif
+SectionEnd