aboutsummaryrefslogtreecommitdiff
path: root/development/qt-creator/qt-creator.SlackBuild
diff options
context:
space:
mode:
authorAndre Barboza <bmg.andre@gmail.com>2016-06-15 06:34:05 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-06-15 06:34:05 +0700
commit080308e1b19f5d0587d259c46035d8e845cef851 (patch)
tree81468a8840973029e0d16a083ef4d1cfc73509bf /development/qt-creator/qt-creator.SlackBuild
parent544836ea5c570f2edaa7b0057e257862144bd29c (diff)
development/qt-creator: Updated for version 4.0.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/qt-creator/qt-creator.SlackBuild')
-rw-r--r--development/qt-creator/qt-creator.SlackBuild56
1 files changed, 28 insertions, 28 deletions
diff --git a/development/qt-creator/qt-creator.SlackBuild b/development/qt-creator/qt-creator.SlackBuild
index 98bac8f31b0b..b0a61be9af40 100644
--- a/development/qt-creator/qt-creator.SlackBuild
+++ b/development/qt-creator/qt-creator.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for qt-creator
-# Copyright 2009 Andre Barboza
+# Copyright 2016 Andre Barboza
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,19 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Written by Andre Barboza <bmg.andre@gmail.com>
-# Modified by the SlackBuilds.org project.
-# Modified by Willy Sudiarto Raharjo <willysr@slackware-id.org>
-
PRGNAM=qt-creator
-VERSION=${VERSION:-2.8.0}
+VERSION=${VERSION:-4.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# QmlDesigner needs Qt Private Headers
-# Extract Qt source (from Slackware) into /usr/src and apply all the patches
-QTSOURCEDIR=${QTSOURCEDIR:-"/usr/src/qt-everywhere-opensource-src-4.8.2"}
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -67,27 +59,34 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION-src
-tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
-cd $PRGNAM-$VERSION-src
+rm -rf $PRGNAM-opensource-src-$VERSION
+tar xvf $CWD/$PRGNAM-opensource-src-$VERSION.tar.gz
+cd $PRGNAM-opensource-src-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-# We are intentionally using an in-source build here,
-# because the out-of-source build was causing errors
-qmake \
- IDE_LIBRARY_BASENAME="lib$LIBDIRSUFFIX" \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+# Adjust docs location.
+sed -i "s|share/doc/qtcreator|doc/$PRGNAM-$VERSION|g" qtcreator.pri
+sed -i "s|share/doc/qtcreator|doc/$PRGNAM-$VERSION|g" doc/api/qtcreator-documentation.qdoc
+sed -i "s|share/doc/qtcreator|doc/$PRGNAM-$VERSION|g" src/plugins/coreplugin/icore.cpp
+
+qmake-qt5 qtcreator.pro \
QMAKE_CXXFLAGS="$SLKCFLAGS" \
- QT_PRIVATE_HEADERS="${QTSOURCEDIR}/include" \
- qtcreator.pro
+ QTC_PREFIX=/usr \
+ IDE_LIBRARY_BASENAME=lib$LIBDIRSUFFIX \
+ LLVM_INSTALL_DIR=/usr \
+ QBS_INSTALL_DIR=/usr
+
make
-make install INSTALL_ROOT=$PKG/usr
+make install INSTALL_ROOT=$PKG
+make docs
+make install_docs INSTALL_ROOT=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/share/applications
@@ -97,12 +96,13 @@ mkdir -p $PKG/usr/share/mime/packages
cat $CWD/x-qt-creator.xml > $PKG/usr/share/mime/packages/x-qt-creator.xml
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a HACKING LICENSE.LGPL README LGPL_EXCEPTION.TXT $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a HACKING LICENSE.GPL3-EXCEPT README.md dist/changes-$VERSION.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}