summaryrefslogtreecommitdiff
path: root/development/qt-creator/qt-creator.SlackBuild
diff options
context:
space:
mode:
authorAndre Barboza <bmg.andre@gmail.com>2012-12-30 13:39:16 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-12-30 13:39:16 -0500
commit53407915a342ad01727078aaca7661aff1d47e0a (patch)
treebd64a7aeb4b32c14b63bd6e63e88ada57aeb09f8 /development/qt-creator/qt-creator.SlackBuild
parent5cdddf9521c15bc6801adf735859c4b08bed85a5 (diff)
downloadslackbuilds-53407915a342ad01727078aaca7661aff1d47e0a.tar.gz
development/qt-creator: Updated for version 2.6.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/qt-creator/qt-creator.SlackBuild')
-rw-r--r--development/qt-creator/qt-creator.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/development/qt-creator/qt-creator.SlackBuild b/development/qt-creator/qt-creator.SlackBuild
index ef740e129d..9f5409222b 100644
--- a/development/qt-creator/qt-creator.SlackBuild
+++ b/development/qt-creator/qt-creator.SlackBuild
@@ -27,10 +27,14 @@
# Modified by Willy Sudiarto Raharjo <willysr@slackware-id.org>
PRGNAM=qt-creator
-VERSION=${VERSION:-2.5.2}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-2.6.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 ;;
@@ -78,6 +82,7 @@ find . \
qmake \
IDE_LIBRARY_BASENAME="lib$LIBDIRSUFFIX" \
QMAKE_CXXFLAGS="$SLKCFLAGS" \
+ QT_PRIVATE_HEADERS="${QTSOURCEDIR}/include" \
qtcreator.pro
make
make install INSTALL_ROOT=$PKG/usr
@@ -88,6 +93,9 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
mkdir -p $PKG/usr/share/applications
cat $CWD/qt-creator.desktop > $PKG/usr/share/applications/qt-creator.desktop
+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
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild