diff options
| -rw-r--r-- | debian/changelog | 5 | ||||
| -rw-r--r-- | debian/control | 30 | ||||
| -rw-r--r-- | debian/copyright | 52 | ||||
| -rw-r--r-- | debian/docs | 1 | ||||
| -rw-r--r-- | debian/gbp.conf | 3 | ||||
| -rw-r--r-- | debian/patches/gtk2-platformtheme-compat.patch | 48 | ||||
| -rw-r--r-- | debian/patches/series | 1 | ||||
| -rwxr-xr-x | debian/rules | 12 | ||||
| -rw-r--r-- | debian/source/format | 1 | ||||
| -rw-r--r-- | debian/watch | 2 |
10 files changed, 155 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9fd3961 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +qt5gtk2 (0.8-0vanir1) unstable; urgency=medium + + * Initial release. + + -- Unit 193 <unit193@unit193.net> Mon, 09 Jan 2023 07:35:02 -0500 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..85d593d --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: qt5gtk2 +Section: x11 +Priority: optional +Maintainer: Unit 193 <unit193@unit193.net> +Build-Depends: debhelper-compat (= 13), + libx11-dev, + libgtk2.0-dev, + qtbase5-dev, + qtbase5-private-dev, +Rules-Requires-Root: no +Standards-Version: 4.6.2 +Homepage: https://bitbucket.org/trialuser02/qt5gtk2/ +Vcs-Browser: https://git.unit193.net/cgit/users/unit193/qt5gtk2.git +Vcs-Git: https://git.unit193.net/cgit/users/unit193/qt5gtk2.git + +Package: qt5gtk2 +Architecture: any +Multi-Arch: same +Depends: ${misc:Depends}, ${shlibs:Depends} +Breaks: qt5-gtk2-platformtheme +Replaces: qt5-gtk2-platformtheme +Description: GTK 2 integration plugins for Qt5 + This package contains the GTK 2 style and platform theme, for proper usage + it requires that you have a functional GTK 2 theme selected. + . + To enable it for all Qt applications, export QT_QPA_PLATFORMTHEME=qt5gtk2 + or 'gtk2' for compatibility reasons. + . + To avoid visual bugs, ensure that the environment variable QT_STYLE_OVERRIDE + is not set before usage. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..a88d72a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,52 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: qt5gtk2 +Source: https://bitbucket.org/trialuser02/qt5gtk2 + +Files: * +Copyright: 2015, The Qt Company Ltd. * + 2016-2022, Ilya Kotov <forkotov02@ya.ru> +License: GPL-2+ + +Files: debian/* +Copyright: 2023, Unit 193 <unit193@unit193.net> +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 copyright holder 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 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 HOLDERS 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: GPL-2+ + 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 <https://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". diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..5474c60 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,3 @@ +[DEFAULT] +pristine-tar = True +sign-tags = True diff --git a/debian/patches/gtk2-platformtheme-compat.patch b/debian/patches/gtk2-platformtheme-compat.patch new file mode 100644 index 0000000..30a5985 --- /dev/null +++ b/debian/patches/gtk2-platformtheme-compat.patch @@ -0,0 +1,48 @@ +Description: Also allow using 'gtk2' as a trigger key, for compatibility with qt5-gtk2-platformtheme. +Author: Unit 193 <unit193@unit193.net> +Origin: vendor +Forwarded: not-needed + +--- + src/qt5gtk2-qtplugin/main.cpp | 2 +- + src/qt5gtk2-qtplugin/qt5gtk2.json | 2 +- + src/qt5gtk2-style/plugin.cpp | 2 +- + src/qt5gtk2-style/qt5gtk2.json | 2 +- + 4 files changed, 4 insertions(+), 4 deletions(-) + +--- a/src/qt5gtk2-qtplugin/qt5gtk2.json 2023-01-09 23:24:08.923845343 -0500 ++++ b/src/qt5gtk2-qtplugin/qt5gtk2.json 2023-01-09 23:24:08.911845273 -0500 +@@ -1,3 +1,3 @@ + { +- "Keys": [ "qt5gtk2" ] ++ "Keys": [ "gtk2", "qt5gtk2" ] + } +--- a/src/qt5gtk2-style/plugin.cpp 2023-01-09 23:24:08.923845343 -0500 ++++ b/src/qt5gtk2-style/plugin.cpp 2023-01-09 23:24:08.911845273 -0500 +@@ -34,7 +34,7 @@ + + QStyle *Qt5Gtk2StylePlugin::create(const QString &key) + { +- if (key == "qt5gtk2") ++ if (key == "gtk2" || key == "qt5gtk2") + return new QGtkStyle; + return 0; + } +--- a/src/qt5gtk2-style/qt5gtk2.json 2023-01-09 23:24:08.923845343 -0500 ++++ b/src/qt5gtk2-style/qt5gtk2.json 2023-01-09 23:24:08.911845273 -0500 +@@ -1,3 +1,3 @@ + { +- "Keys": [ "qt5gtk2" ] ++ "Keys": [ "gtk2", "qt5gtk2" ] + } +--- a/src/qt5gtk2-qtplugin/main.cpp 2022-06-04 02:58:43.000000000 -0400 ++++ b/src/qt5gtk2-qtplugin/main.cpp 2023-01-09 23:25:17.736251794 -0500 +@@ -35,7 +35,7 @@ + QPlatformTheme *Qt5Gtk2ThemePlugin::create(const QString &key, const QStringList ¶ms) + { + Q_UNUSED(params); +- if (!key.compare(QLatin1String(Qt5Gtk2Theme::name), Qt::CaseInsensitive)) ++ if (key.toLower() == QStringLiteral("gtk2") || key.toLower() == QStringLiteral("qt5gtk2")) + return new Qt5Gtk2Theme; + + return 0; diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4f99e84 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +gtk2-platformtheme-compat.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..eeb0086 --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +# export DH_VERBOSE=1 + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk +export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..307d45f --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +https://bitbucket.org/trialuser02/qt5gtk2/downloads .*/qt5gtk2-([\d\.]+)\.tar\.(?:bz2|gz|xz) |
