# Description: Additional style plugins for Qt5 # URL: https://github.com/qt/qtstyleplugins # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: double-conversion gtk qt5 name=qt5-styleplugins version=335dbec release=1 source=(https://github.com/qt/qtstyleplugins/archive/$version/335dbece103e2cbf6c7cf819ab6672c2956b17b3.tar.gz 0001-fix-build-against-Qt-5.15.patch 0002-fix-gtk2-background.patch) build(){ cd qtstyleplugins-335dbece103e2cbf6c7cf819ab6672c2956b17b3 # Thanks Arch Linux for the patches! patch -p1 -i $SRC/0001-fix-build-against-Qt-5.15.patch patch -p1 -i $SRC/0002-fix-gtk2-background.patch # Force linking against Qt5DBus or build will fail sed -i "s|2.0$|2.0 Qt5DBus|" src/plugins/platformthemes/gtk2/gtk2.pro qmake-qt5 \ PREFIX="/usr" \ QMAKE_CFLAGS_RELEASE="$CFLAGS" \ QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS" \ LIBS+="-lQt5DBus" make make INSTALL_ROOT=$PKG install }