summaryrefslogtreecommitdiffstats
path: root/libraries/qt3/qt3.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/qt3/qt3.SlackBuild')
-rw-r--r--libraries/qt3/qt3.SlackBuild46
1 files changed, 33 insertions, 13 deletions
diff --git a/libraries/qt3/qt3.SlackBuild b/libraries/qt3/qt3.SlackBuild
index 5353566b02..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,6 +29,14 @@
# This is based on the original SlackBuild from /extra/kde-compat in
# Slackware 13.1
+# 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:
@@ -43,16 +51,13 @@
# - included patch for new libpng (based on work by Stuart Winter)
# Revision date 2012/08/09
-# 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
+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}
@@ -121,6 +130,9 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
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" | \
@@ -149,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
@@ -189,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 \
@@ -212,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}
@@ -224,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