diff options
author | ArTourter <artourter@gmail.com> | 2011-02-20 23:33:41 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-02-28 09:42:06 -0600 |
commit | 91058dff61b854186bf35422960172306d446c60 (patch) | |
tree | 33891aefeeece3ad6c64e6f52430120d7c9a6572 /office | |
parent | c7ec96871228f4dd1497b9fc2a7ed219c8a8b20c (diff) |
office/adobe-reader: Fix bug in bash-completion script
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r-- | office/adobe-reader/adobe-reader.SlackBuild | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/office/adobe-reader/adobe-reader.SlackBuild b/office/adobe-reader/adobe-reader.SlackBuild index ac92a09badaf..d9015332ce1c 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 |