nixpkgs/pkgs/applications/misc/acrobat-reader/builder.sh
Eelco Dolstra 4d905aa2ed * Added the Emacs 22.0 branch with anti-aliasing (Xft) support.
* Added an option to Adobe Reader to make it start faster (by deleting
  all the plugins).

svn path=/nixpkgs/trunk/; revision=4406
2005-12-22 10:49:43 +00:00

29 lines
627 B
Bash

source $stdenv/setup
echo "unpacking $src..."
tar xvfz $src
mkdir $out
echo "unpacking reader..."
tar xvf AdobeReader/COMMON.TAR -C $out
tar xvf AdobeReader/ILINXR.TAR -C $out
# Disable this plugin for now (it needs LDAP, and I'm too lazy to add it).
rm $out/Reader/intellinux/plug_ins/PPKLite.api
if test -n "$fastStart"; then
rm $out/Reader/intellinux/plug_ins/*.api
fi
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
fullPath=
for i in $libPath; do
fullPath=$fullPath${fullPath:+:}$i/lib
done
patchelf --interpreter $glibc/lib/ld-linux.so.* \
--set-rpath $fullPath \
$out/Reader/intellinux/bin/acroread