summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2017-01-28 03:08:51 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-01-28 07:37:55 +0700
commitcccc0080479b962c414bd51c86fb65bb7e7224b6 (patch)
tree1518e2f5a8900d720054cb29d2eb4cc3131dfd6f
parent5f867769c66c5d19b01aa7b40d38cd7cf3527cfd (diff)
downloadslackbuilds-cccc0080479b962c414bd51c86fb65bb7e7224b6.tar.gz
desktop/qt5ct: Updated for version 0.29.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--desktop/qt5ct/qt5ct.SlackBuild18
-rw-r--r--desktop/qt5ct/qt5ct.info6
2 files changed, 18 insertions, 6 deletions
diff --git a/desktop/qt5ct/qt5ct.SlackBuild b/desktop/qt5ct/qt5ct.SlackBuild
index fbdca3ffbe..94d82086ff 100644
--- a/desktop/qt5ct/qt5ct.SlackBuild
+++ b/desktop/qt5ct/qt5ct.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for <appname>
-# Copyright 2016, Alexander Verbovetsky, Moscow, Russia
+# Copyright 2016-2017, Alexander Verbovetsky, Moscow, Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=qt5ct
-VERSION=${VERSION:-0.27}
+VERSION=${VERSION:-0.29}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,6 +40,16 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
+fi
+
set -e
rm -rf $PKG
@@ -55,7 +65,9 @@ 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 {} \;
-qmake-qt5
+qmake-qt5 \
+ QMAKE_CFLAGS="$SLKCFLAGS" \
+ QMAKE_CXXFLAGS="$SLKCFLAGS"
make
make install INSTALL_ROOT=$PKG
diff --git a/desktop/qt5ct/qt5ct.info b/desktop/qt5ct/qt5ct.info
index 3978c61f66..8957a8b704 100644
--- a/desktop/qt5ct/qt5ct.info
+++ b/desktop/qt5ct/qt5ct.info
@@ -1,8 +1,8 @@
PRGNAM="qt5ct"
-VERSION="0.27"
+VERSION="0.29"
HOMEPAGE="http://qt5ct.sourceforge.net"
-DOWNLOAD="http://downloads.sourceforge.net/project/qt5ct/qt5ct-0.27.tar.bz2"
-MD5SUM="dd6706fe7647499899dfe015dedae3bf"
+DOWNLOAD="http://downloads.sourceforge.net/project/qt5ct/qt5ct-0.29.tar.bz2"
+MD5SUM="ddace0ebc60c2e6f354c2b924ae2a788"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="qt5"