3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/adobe-reader/builder.sh
Lluís Batlle i Rossell 0fe27433af 'tar' fails at unpacking adobe files, but the files get unpacked.
I simply disable the check for tar error codes.


svn path=/nixpkgs/branches/stdenv-updates/; revision=25067
2010-12-12 08:47:13 +00:00

29 lines
808 B
Bash

source $stdenv/setup
echo "unpacking $src..."
tar xvfa $src
ensureDir $out/Adobe/Reader9
echo "unpacking reader..."
set +e
tar xvf AdobeReader/COMMON.TAR -C $out
tar xvf AdobeReader/ILINXR.TAR -C $out
set -e
# Disable this plugin for now (it needs LDAP, and I'm too lazy to add it).
rm $out/Adobe/Reader*/Reader/intellinux/plug_ins/PPKLite.api
patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath $libPath \
$out/Adobe/Reader*/Reader/intellinux/bin/acroread
# The "xargs -r" is to shut up a warning when Mozilla can't be found.
substituteInPlace $out/Adobe/Reader*/bin/acroread \
--replace /bin/pwd $(type -P pwd) \
--replace /bin/ls $(type -P ls) \
--replace xargs "xargs -r"
ensureDir $out/bin
ln -s $out/Adobe/Reader*/bin/acroread $out/bin/acroread