diff options
author | Alexandr Savca <alexandr.savca89@gmail.com> | 2020-11-19 16:37:37 +0200 |
---|---|---|
committer | Alexandr Savca <alexandr.savca89@gmail.com> | 2020-11-19 16:37:37 +0200 |
commit | 0df5e07a9f13025389f3a614628c50b3c2569f2b (patch) | |
tree | d8472c50389c489f1dc2007ef3119d7db99b7f28 | |
parent | 2be675cfd7a1eee2dfda196ac2edb342c4e8f505 (diff) | |
download | contrib-0df5e07a9f13025389f3a614628c50b3c2569f2b.tar.gz contrib-0df5e07a9f13025389f3a614628c50b3c2569f2b.tar.xz |
qt5-styleplugins: initial commit, v5.0.0-335dbec
-rw-r--r-- | qt5-styleplugins/.footprint | 21 | ||||
-rw-r--r-- | qt5-styleplugins/.signature | 6 | ||||
-rw-r--r-- | qt5-styleplugins/Pkgfile | 31 | ||||
-rw-r--r-- | qt5-styleplugins/qt5.15.patch | 25 |
4 files changed, 83 insertions, 0 deletions
diff --git a/qt5-styleplugins/.footprint b/qt5-styleplugins/.footprint new file mode 100644 index 000000000..52b9330d1 --- /dev/null +++ b/qt5-styleplugins/.footprint @@ -0,0 +1,21 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/cmake/ +drwxr-xr-x root/root usr/lib/cmake/Qt5Gui/ +-rw-r--r-- root/root usr/lib/cmake/Qt5Gui/Qt5Gui_QGtk2ThemePlugin.cmake +drwxr-xr-x root/root usr/lib/cmake/Qt5Widgets/ +-rw-r--r-- root/root usr/lib/cmake/Qt5Widgets/Qt5Widgets_QBB10StylePlugin.cmake +-rw-r--r-- root/root usr/lib/cmake/Qt5Widgets/Qt5Widgets_QCleanlooksStylePlugin.cmake +-rw-r--r-- root/root usr/lib/cmake/Qt5Widgets/Qt5Widgets_QGtk2StylePlugin.cmake +-rw-r--r-- root/root usr/lib/cmake/Qt5Widgets/Qt5Widgets_QMotifStylePlugin.cmake +-rw-r--r-- root/root usr/lib/cmake/Qt5Widgets/Qt5Widgets_QPlastiqueStylePlugin.cmake +drwxr-xr-x root/root usr/lib/qt5/ +drwxr-xr-x root/root usr/lib/qt5/plugins/ +drwxr-xr-x root/root usr/lib/qt5/plugins/platformthemes/ +-rwxr-xr-x root/root usr/lib/qt5/plugins/platformthemes/libqgtk2.so +drwxr-xr-x root/root usr/lib/qt5/plugins/styles/ +-rwxr-xr-x root/root usr/lib/qt5/plugins/styles/libbb10styleplugin.so +-rwxr-xr-x root/root usr/lib/qt5/plugins/styles/libqcleanlooksstyle.so +-rwxr-xr-x root/root usr/lib/qt5/plugins/styles/libqgtk2style.so +-rwxr-xr-x root/root usr/lib/qt5/plugins/styles/libqmotifstyle.so +-rwxr-xr-x root/root usr/lib/qt5/plugins/styles/libqplastiquestyle.so diff --git a/qt5-styleplugins/.signature b/qt5-styleplugins/.signature new file mode 100644 index 000000000..a46a6a6f9 --- /dev/null +++ b/qt5-styleplugins/.signature @@ -0,0 +1,6 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3zBasHG4nZS9L4CiqJWzTW83xGXcAp6BWmOxtsQhDo/tUKkMMHdSI3CgdFrDDc/BccPfxp6lkf9mWZgBI9r2zAY= +SHA256 (Pkgfile) = ac9a0990cf5d7ad5f4ddd2c699084c7414118241b8ec078c396bfcf545456ff3 +SHA256 (.footprint) = 006821161e7aa7e7dfcca7770726efb469db9a1ac5384dc2ff4e95863addd016 +SHA256 (qt5-styleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.tar.gz) = 29ec24fa8df64be161ad06d0e5af3ba1a20bfe265004f5fe4ab9f5f3abf9a5ba +SHA256 (qt5.15.patch) = 7e0c4fb1d98af974500ad31a42da0f85492326cb6ed2155b510d67c85291d7a4 diff --git a/qt5-styleplugins/Pkgfile b/qt5-styleplugins/Pkgfile new file mode 100644 index 000000000..60c8d465e --- /dev/null +++ b/qt5-styleplugins/Pkgfile @@ -0,0 +1,31 @@ +# Description: Additional style plugins for Qt5 +# URL: https://github.com/qt/qtstyleplugins +# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com +# Depends on: gtk libpcre2 qt5 zstd + +name=qt5-styleplugins +_commit=335dbece103e2cbf6c7cf819ab6672c2956b17b3 +version=5.0.0-335dbec +release=1 +source=(https://github.com/qt/qtstyleplugins/archive/$_commit/$name-$_commit.tar.gz + qt5.15.patch) + +build() { + cd qtstyleplugins-$_commit + + patch -p1 < $SRC/qt5.15.patch + + qmake-qt5 \ + PREFIX="/usr" \ + QMAKE_CFLAGS_RELEASE="$CFLAGS" \ + QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS" \ + LIBS+="-lQt5DBus" + + make qmake_all + + # remove default '-pipe -O2' flag + find . -name Makefile -exec sed -i 's/ -pipe -O2 / /g' {} \; + + make + make INSTALL_ROOT=$PKG install +} diff --git a/qt5-styleplugins/qt5.15.patch b/qt5-styleplugins/qt5.15.patch new file mode 100644 index 000000000..d3f0feb56 --- /dev/null +++ b/qt5-styleplugins/qt5.15.patch @@ -0,0 +1,25 @@ +diff -pruN qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/qgtkstyle.cpp qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/qgtkstyle.cpp +--- qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/qgtkstyle.cpp 2017-03-11 11:23:02.000000000 +0200 ++++ qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/qgtkstyle.cpp 2020-07-13 11:29:16.119019641 +0300 +@@ -440,7 +440,7 @@ void QGtkStyle::polish(QApplication *app + // not supported as these should be entirely determined by + // current Gtk settings + if (app->desktopSettingsAware() && d->isThemeAvailable()) { +- QApplicationPrivate::setSystemPalette(standardPalette()); ++ QApplication::setPalette(standardPalette()); + QApplicationPrivate::setSystemFont(d->getThemeFont()); + d->applyCustomPaletteHash(); + if (!d->isKDE4Session()) +Binary files qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/.qgtkstyle.cpp.un~ and qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/.qgtkstyle.cpp.un~ differ +diff -pruN qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/qgtkstyle_p.cpp qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/qgtkstyle_p.cpp +--- qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/qgtkstyle_p.cpp 2017-03-11 11:23:02.000000000 +0200 ++++ qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/qgtkstyle_p.cpp 2020-07-13 11:28:03.225683567 +0300 +@@ -508,7 +508,6 @@ void QGtkStyleUpdateScheduler::updateThe + if (oldTheme != QGtkStylePrivate::getThemeName()) { + oldTheme = QGtkStylePrivate::getThemeName(); + QPalette newPalette = qApp->style()->standardPalette(); +- QApplicationPrivate::setSystemPalette(newPalette); + QApplication::setPalette(newPalette); + if (!QGtkStylePrivate::instances.isEmpty()) { + QGtkStylePrivate::instances.last()->initGtkWidgets(); +Binary files qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3/src/plugins/styles/gtk2/.qgtkstyle_p.cpp.un~ and qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3.new/src/plugins/styles/gtk2/.qgtkstyle_p.cpp.un~ differ |