summaryrefslogtreecommitdiffstats
path: root/libreoffice
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-07-19 15:30:28 +0000
committer Eric Hameleers <alien@slackware.com>2016-07-19 15:30:28 +0000
commit4c7e4fa1d103cbefbd67e30fc0c4d6a2bd301ef0 (patch)
tree169e9ff6b26f11b6537095292fb2d9dd206e3841 /libreoffice
parentbe2e287eb716483b28542f534ec7e42478674c5b (diff)
downloadasb-4c7e4fa1d103cbefbd67e30fc0c4d6a2bd301ef0.tar.gz
asb-4c7e4fa1d103cbefbd67e30fc0c4d6a2bd301ef0.tar.xz
libreoffice: add profile scripts to force the use of the GTK2 interface.
Diffstat (limited to 'libreoffice')
-rwxr-xr-xlibreoffice/build/libreoffice.SlackBuild8
-rwxr-xr-xlibreoffice/build/libreoffice51.SlackBuild8
2 files changed, 16 insertions, 0 deletions
diff --git a/libreoffice/build/libreoffice.SlackBuild b/libreoffice/build/libreoffice.SlackBuild
index 814f3885..863a1999 100755
--- a/libreoffice/build/libreoffice.SlackBuild
+++ b/libreoffice/build/libreoffice.SlackBuild
@@ -1589,6 +1589,14 @@ chmod 0644 $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/{LICENSE,NOTICE} || true
find ${PKG} -perm 444 -exec chmod 644 {} \; || true
find ${PKG} -perm 555 -exec chmod 755 {} \; || true
+# Add the profile scripts:
+mkdir -p $PKG/etc/profile.d
+for file in $(ls $SRCDIR/profile.d/${PRGNAM}*) ; do
+ cat $file | sed -e "s#@LIBDIRSUFFIX@#${LIBDIRSUFFIX}#g" \
+ > $PKG/etc/profile.d/$(basename $file)
+done
+chmod 755 $PKG/etc/profile.d/*
+
# Compress the man page(s):
if [ -d $PKG/usr/man ]; then
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
diff --git a/libreoffice/build/libreoffice51.SlackBuild b/libreoffice/build/libreoffice51.SlackBuild
index 814f3885..863a1999 100755
--- a/libreoffice/build/libreoffice51.SlackBuild
+++ b/libreoffice/build/libreoffice51.SlackBuild
@@ -1589,6 +1589,14 @@ chmod 0644 $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/{LICENSE,NOTICE} || true
find ${PKG} -perm 444 -exec chmod 644 {} \; || true
find ${PKG} -perm 555 -exec chmod 755 {} \; || true
+# Add the profile scripts:
+mkdir -p $PKG/etc/profile.d
+for file in $(ls $SRCDIR/profile.d/${PRGNAM}*) ; do
+ cat $file | sed -e "s#@LIBDIRSUFFIX@#${LIBDIRSUFFIX}#g" \
+ > $PKG/etc/profile.d/$(basename $file)
+done
+chmod 755 $PKG/etc/profile.d/*
+
# Compress the man page(s):
if [ -d $PKG/usr/man ]; then
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;