diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-06-09 23:25:20 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-06-10 08:02:36 +0700 |
commit | 715812ba7e1027f158dfa02fb08d9f3cdd65bb61 (patch) | |
tree | 6a61dcfe0e0a113b32836f3e0bdbc7369d4dae69 /development/qbs/qbs.SlackBuild | |
parent | e37f81feb0287079152d03c16f477e774e4c6b96 (diff) | |
download | slackbuilds-715812ba7e1027f158dfa02fb08d9f3cdd65bb61.tar.gz |
development/qbs: Updated for version 1.5.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/qbs/qbs.SlackBuild')
-rw-r--r-- | development/qbs/qbs.SlackBuild | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/development/qbs/qbs.SlackBuild b/development/qbs/qbs.SlackBuild index 41cb30e380..38a44ef913 100644 --- a/development/qbs/qbs.SlackBuild +++ b/development/qbs/qbs.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=qbs -VERSION=${VERSION:-1.3.2} +VERSION=${VERSION:-1.5.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,9 +59,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.src.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-src-$VERSION +tar xvf $CWD/$PRGNAM-src-$VERSION.tar.gz +cd $PRGNAM-src-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -69,11 +69,19 @@ 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 {} \; -# Build qbs -qmake -r qbs.pro QBS_LIBRARY_DIRNAME=lib$LIBDIRSUFFIX +# Adjust docs location. +sed -i "s|share/doc/qbs|doc/qbs-$VERSION|g" doc/doc.pri + +qmake-qt5 qbs.pro \ + QMAKE_CXXFLAGS="$SLKCFLAGS" \ + QBS_INSTALL_PREFIX=/usr \ + QBS_LIBRARY_DIRNAME=lib$LIBDIRSUFFIX \ + CONFIG+=qbs_enable_project_file_updates + make +make install INSTALL_ROOT=$PKG make docs -make install INSTALL_ROOT=$PKG/usr +make install_docs INSTALL_ROOT=$PKG 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 @@ -82,6 +90,9 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a doc/html doc/qbs.qch $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/usr/share/applications +cat $CWD/qbs-config-ui.desktop > $PKG/usr/share/applications/qbs-config-ui.desktop + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |