summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2012-08-24 20:27:30 +0000
committer Eric Hameleers <alien@slackware.com>2012-08-24 20:27:30 +0000
commit5cdbe933ac8cb4eef1d36a4d5baa3b6e70b0972e (patch)
tree0c280aea9318f2947f15491754ebcb4273784280
parent5acc84cb36d5436a0ca44fde25d7b029c7a23938 (diff)
downloadmultilib-5cdbe933ac8cb4eef1d36a4d5baa3b6e70b0972e.tar.gz
multilib-5cdbe933ac8cb4eef1d36a4d5baa3b6e70b0972e.tar.xz
Add improvements for qt package, as suggested by
Sebastien BALLET <slacker6896@gmail.com>
-rwxr-xr-xcompat32-tools/convertpkg-compat3215
1 files changed, 14 insertions, 1 deletions
diff --git a/compat32-tools/convertpkg-compat32 b/compat32-tools/convertpkg-compat32
index d38d1ec..3a2a6b3 100755
--- a/compat32-tools/convertpkg-compat32
+++ b/compat32-tools/convertpkg-compat32
@@ -256,10 +256,23 @@ fi
# binaries in qt's lib directory. We have to strip those from the -compat32
# package. If you want to build 32bit software that needs these qt binaries,
# you will have to add /usr/lib/qt/bin/ to your $PATH
+# We will remove a lot of stuff which we do not need in the compat32 package
+#
if [ "$PKGNAM" = "qt" -o "$PKGNAM" = "qt3" ]; then
- cat install/doinst.sh | grep -v 'usr/bin' | grep -v 'opt/kde3/bin' > install/doinst.sh.2
+
+ if [ -d usr/lib/qt ] ; then
+ for ITEM in q3porting.xml demos doc examples ; do
+ if [ -e "usr/lib/qt/$ITEM" ] ; then
+ rm -rf "usr/lib/qt/$ITEM"
+ fi
+ done
+ fi
+
+ cat install/doinst.sh | grep -v 'usr/bin' | grep -v 'opt/kde3/bin' \
+ > install/doinst.sh.2
cat install/doinst.sh.2 > install/doinst.sh
rm -f install/doinst.sh.2
+
fi
# Keep documentation we might be required to keep, or is just polite: