summaryrefslogtreecommitdiff
path: root/development/qt-creator/qt-creator.SlackBuild
diff options
context:
space:
mode:
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