diff options
Diffstat (limited to 'libraries/qt5-styleplugins/qt5-styleplugins.SlackBuild')
-rw-r--r-- | libraries/qt5-styleplugins/qt5-styleplugins.SlackBuild | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/libraries/qt5-styleplugins/qt5-styleplugins.SlackBuild b/libraries/qt5-styleplugins/qt5-styleplugins.SlackBuild index 7132a0064b..3ff06e7d9f 100644 --- a/libraries/qt5-styleplugins/qt5-styleplugins.SlackBuild +++ b/libraries/qt5-styleplugins/qt5-styleplugins.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for qt5-styleplugins @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=qt5-styleplugins VERSION=${VERSION:-5.0.0.20170112} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=qtstyleplugins SRCVERSION=335dbece103e2cbf6c7cf819ab6672c2956b17b3 @@ -38,7 +41,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -72,6 +82,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# Apply patches from Archlinux for qt-5.15.x +for i in $CWD/patches/* ; do patch -p1 < $i ; done + +# Force linking against Qt5DBus or build will fail +sed -i "s|2.0$|2.0 Qt5DBus|" src/plugins/platformthemes/gtk2/gtk2.pro + QMAKE_CFLAGS_RELEASE="$SLKCFLAGS" \ QMAKE_CXXFLAGS_RELEASE="$SLKCFLAGS" \ PREFIX=/usr \ @@ -91,4 +107,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |