aboutsummaryrefslogtreecommitdiff
path: root/office/adobe-reader/adobe-reader.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/adobe-reader/adobe-reader.SlackBuild')
-rw-r--r--office/adobe-reader/adobe-reader.SlackBuild19
1 files changed, 12 insertions, 7 deletions
diff --git a/office/adobe-reader/adobe-reader.SlackBuild b/office/adobe-reader/adobe-reader.SlackBuild
index ac92a09badaf5..d9015332ce1c8 100644
--- a/office/adobe-reader/adobe-reader.SlackBuild
+++ b/office/adobe-reader/adobe-reader.SlackBuild
@@ -29,7 +29,7 @@
PRGNAM=adobe-reader
VERSION=9.4.1
ARCH=i486 # Leave this alone for acroread
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -68,36 +68,41 @@ rm -r Reader9/Browser/{HowTo,install_browser_plugin}
# Add symlink for browser plugins
mkdir -p $PKG/usr/lib/mozilla/plugins
cd $PKG/usr/lib/mozilla/plugins
- ln -sf /opt/Adobe/Reader9/Browser/intellinux/nppdf.so .
+ ln -sf ../../../../opt/Adobe/Reader9/Browser/intellinux/nppdf.so .
cd -
# Add symlink to AdobeReader.xml for correct mimetype
mkdir -p $PKG/usr/share/mime/packages
cd $PKG/usr/share/mime/packages
- ln -sf /opt/Adobe/Reader9/Resource/Support/AdobeReader.xml .
+ ln -sf ../../../../opt/Adobe/Reader9/Resource/Support/AdobeReader.xml .
cd -
# Fix symlink to .desktop file
mkdir -p $PKG/usr/share/{applications,pixmaps}
cd $PKG/usr/share/applications
- ln -sf /opt/Adobe/Reader9/Resource/Support/AdobeReader.desktop .
+ ln -sf ../../../opt/Adobe/Reader9/Resource/Support/AdobeReader.desktop .
cd -
# Link icon to /usr/share/pixmaps
cd $PKG/usr/share/pixmaps
- ln -sf /opt/Adobe/Reader9/Resource/Icons/48x48/AdobeReader9.png .
+ ln -sf ../../../opt/Adobe/Reader9/Resource/Icons/48x48/AdobeReader9.png .
cd -
# Link manpage to /usr/man/man1
mkdir -p $PKG/usr/man/man1
cd $PKG/usr/man/man1
- ln -sf /opt/Adobe/Reader9/Resource/Shell/acroread.1.gz .
+ ln -sf ../../../opt/Adobe/Reader9/Resource/Shell/acroread.1.gz .
cd -
+# Fix bug in bash completion script by redefining "_filedir" function
+# to "_acroread_filedir" as suggested on the adobe forum:
+# http://forums.adobe.com/thread/745833
+sed -i 's/_filedir/_acroread_filedir/g' $PKG/opt/Adobe/Reader9/Resource/Shell/acroread_tab
+
# Link bash_completion script to /etc/bash_completion.d
mkdir -p $PKG/etc/bash_completion.d
cd $PKG/etc/bash_completion.d
- ln -sf /opt/Adobe/Reader9/Resource/Shell/acroread_tab acroread
+ ln -sf ../../opt/Adobe/Reader9/Resource/Shell/acroread_tab acroread
cd -
# Move docs to their correct locations