From 86b2faedafab10256155c078b327dab0c7ee1139 Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Thu, 25 Sep 2014 16:33:50 +0700 Subject: libraries/qt5: Updated for version 5.3.2. Signed-off-by: Willy Sudiarto Raharjo --- libraries/qt5/qt5.SlackBuild | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) (limited to 'libraries/qt5/qt5.SlackBuild') diff --git a/libraries/qt5/qt5.SlackBuild b/libraries/qt5/qt5.SlackBuild index 2bdc5044248a..80bf7e49f53c 100644 --- a/libraries/qt5/qt5.SlackBuild +++ b/libraries/qt5/qt5.SlackBuild @@ -46,7 +46,7 @@ # tailored to Qt 5. Modified by Larry Hajali. PRGNAM=qt5 -VERSION=${VERSION:-5.3.1} +VERSION=${VERSION:-5.3.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -125,6 +125,8 @@ export OPENSOURCE_CXXFLAGS="$SLKCFLAGS" -opensource \ -prefix "/usr/lib${LIBDIRSUFFIX}/$PRGNAM" \ -sysconfdir "/etc/xdg" \ + -headerdir "/usr/include/$PRGNAM" \ + -libdir "/usr/lib${LIBDIRSUFFIX}" \ -docdir "/usr/doc/$PRGNAM-$VERSION" \ -system-libpng \ -system-libjpeg \ @@ -171,11 +173,6 @@ for BIN in $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/bin/*; do esac done -for LIBS in $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/lib/*so*; do - TMP_FILE=$(echo $LIBS | sed -e "s|$PKG||") - ln -s $TMP_FILE $PKG/usr/lib${LIBDIRSUFFIX}/$(basename $LIBS) -done - # Create Environment variables mkdir -p $PKG/etc/profile.d sed -e "s|@LIBDIRSUFFIX@|${LIBDIRSUFFIX}|g" $CWD/profile.d/$PRGNAM.sh \ @@ -184,17 +181,17 @@ sed -e "s|@LIBDIRSUFFIX@|${LIBDIRSUFFIX}|g" $CWD/profile.d/$PRGNAM.csh \ > $PKG/etc/profile.d/$PRGNAM.csh chmod 0755 $PKG/etc/profile.d/* -cat > $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/lib/pkgconfig/Qt5.pc << EOF +cat > $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/Qt5.pc << EOF prefix=/usr/lib${LIBDIRSUFFIX}/$PRGNAM bindir=\${prefix}/bin datadir=\${prefix} docdir=/usr/doc/$PRGNAM-$VERSION archdatadir=\${prefix} examplesdir=\${prefix}/examples -headerdir=\${prefix}/include +headerdir=/usr/include/$PRGNAM importdir=\${prefix}/imports qmldir=\${prefix}/qml -libdir=\${prefix}/lib +libdir=/usr/lib${LIBDIRSUFFIX} libexec=\${prefix}/libexec moc=\${bindir}/moc plugindir=\${prefix}/plugins @@ -216,10 +213,10 @@ sed -i \ -e "s|-Wl,-whole-archive -lJavaScriptCore -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/JavaScriptCore[^ ]* ||" \ -e "s|-Wl,-whole-archive -lWTF -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/WTF[^ ]* ||" \ -e "s|-Wl,-whole-archive -lleveldb -Wl,-no-whole-archive -L${PWD}/qtwebkit/Source/ThirdParty/leveldb[^ ]* ||" \ - $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/lib/pkgconfig/Qt5WebKit.pc + $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/Qt5WebKit.pc # While we are at it, there isn't any reason to keep references to $PKG in the *.prl files. -for PRL in $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/lib/*.prl; do +for PRL in $PKG/usr/lib${LIBDIRSUFFIX}/*.prl; do sed -i '/^QMAKE_PRL_BUILD_DIR/d' $PRL done @@ -227,18 +224,6 @@ done sed -i "s|$PWD/qtbase|/usr/lib${LIBDIRSUFFIX}/$PRGNAM|" \ $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/mkspecs/modules/qt_lib_bootstrap_private.pri -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig -for PKGCONFIG in $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/lib/pkgconfig/*.pc; do - TMP_FILE=$(echo $PKGCONFIG | sed -e "s|$PKG||") - ln -s $TMP_FILE $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/$(basename $PKGCONFIG) -done - -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/cmake -for CMAKE in $(find $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/lib/cmake -maxdepth 1); do - TMP_FILE=$(echo $CMAKE | sed -e "s|$PKG||") - ln -s $TMP_FILE $PKG/usr/lib${LIBDIRSUFFIX}/cmake/$(basename $CMAKE) -done - for i in $CWD/desktop/*.desktop; do install -D -m 0644 $i $PKG/usr/share/applications/$(basename $i) done -- cgit v1.2.3