diff options
Diffstat (limited to 'libraries/qt3/qt3.SlackBuild')
-rw-r--r-- | libraries/qt3/qt3.SlackBuild | 76 |
1 files changed, 49 insertions, 27 deletions
diff --git a/libraries/qt3/qt3.SlackBuild b/libraries/qt3/qt3.SlackBuild index 04b9df95b5..d6b9806fa4 100644 --- a/libraries/qt3/qt3.SlackBuild +++ b/libraries/qt3/qt3.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Formerly maintained by: # Ryan P.C. McQuen | Everett, WA | <email removed> -# Now maintained by B. Watson <yalhcru@gmail.com> +# Now maintained by B. Watson <urchlay@slackware.uk> # Copyright 2006, 2007, 2008 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. @@ -29,13 +29,16 @@ # This is based on the original SlackBuild from /extra/kde-compat in # Slackware 13.1 -# Adapted for SlackBuilds.org by Niels Horn <email removed> -# - moved building from /opt to $TMP -# - included patch for new libpng (based on work by Stuart Winter) -# Revision date 2012/08/09 - +# 20220419 bkw: BUILD=3: +# - remove useless INSTALL from doc dir. +# - add SlackBuild to doc dir. +# - doinst.sh only edits ld.so.conf if it exists. +# - don't call ldconfig from doinst.sh (installpkg does that already). +# - remove broken symlink. +# 20220318 bkw: fix 32-bit build. +# 20211120 bkw: BUILD=2, install the profile scripts non-executable. +# 20200226 bkw: quit spamming /root, no change to package # 20180209 bkw: fix download link, pkgs.fedoraproject.org is now toast. - # 20170324 bkw: # - take over maintenance. # - i486=>i586. @@ -43,16 +46,18 @@ # - minor fix: stripping -jN from MAKEFLAGS failed, if N>9 (or if # less than 9, with leading zero(es): -j05 for example). -# TODO: fix these: -#sbrun: WARNING: files altered outside the sandbox: -#u /root/.qt/.qt_plugins_3.3rc.lock -#t /root/.qt/qt_plugins_3.3rc.tmp -#u /root/.qt/qt_plugins_3.3rc +# Adapted for SlackBuilds.org by Niels Horn <email removed> +# - moved building from /opt to $TMP +# - included patch for new libpng (based on work by Stuart Winter) +# Revision date 2012/08/09 + +cd $(dirname $0) ; CWD=$(pwd) PRGNAM=qt3 VERSION=${VERSION:-3.3.8b} -BUILD=${BUILD:-5} +BUILD=${BUILD:-7} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=qt-x11-free @@ -64,7 +69,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -113,14 +122,19 @@ patch -p1 < $CWD/qt3_gcc47.patch # Make sure ownerships and permissions are sane: 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 {} \+ - -# And here's what we are currently using. The "yes" agrees to the GPL, so don't run this script if you -# don't agree. :-) +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +# 20200226 bkw: don't write to /root/.qt, keep it all in the sandbox. +# This doesn't change the resulting package, so BUILD stays the same. +export CCACHE_DIR=${CCACHE_DIR:-$HOME/.ccache} +export HOME=$( pwd ) + +# 20220318 bkw: for some reason, "-I /usr/include/tirpc" is needed +# on 32-bit, but not on 64-bit (but it does no harm there). + +# And here's what we are currently using. +# The "yes" agrees to the GPL, so don't run this script if you don't agree. :-) echo "yes" | \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -147,7 +161,8 @@ CXXFLAGS="$SLKCFLAGS" \ -plugin-style-platinum \ -plugin-style-sgi \ -plugin-style-windows \ - -enable-opengl + -enable-opengl \ + -I /usr/include/tirpc # Set QTDIR... QTDIR=$PKG/opt/kde3/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION @@ -187,7 +202,7 @@ cat $CWD/profile.d/qt.sh | sed -e "s#/lib#/lib${LIBDIRSUFFIX}#" \ > $PKG/etc/profile.d/qt.sh cat $CWD/profile.d/qt.csh | sed -e "s#/lib#/lib${LIBDIRSUFFIX}#" \ > $PKG/etc/profile.d/qt.csh -chmod 755 $PKG/etc/profile.d/* +chmod 644 $PKG/etc/profile.d/* # Strip binaries: find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -210,8 +225,9 @@ cd - # Add a documentation directory: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - FAQ INSTALL LICENSE.GPL* LICENSE.QPL MANIFEST PLATFORMS README* changes* \ + FAQ LICENSE.GPL* LICENSE.QPL MANIFEST PLATFORMS README* changes* \ $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # Make a link to "qt3" w/o version number cd $PKG/opt/kde3/lib${LIBDIRSUFFIX} @@ -222,10 +238,16 @@ cd - # source if you need it. rm -rf $PKG/opt/kde3/lib${LIBDIRSUFFIX}/qt3/doc +rm -f $PKG/usr/lib*/*.la + +# 20220419 bkw: broken symlink, targets the build directory. looks like +# it's completely extraneous, just remove it. +rm -f $PKG/opt/kde3/lib64/qt3/mkspecs/linux-g++/linux-g++ + mkdir -p $PKG/install cat $CWD/doinst.sh | sed -e "s|/lib|/lib${LIBDIRSUFFIX}|" \ > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |