nixpkgs-suyu/pkgs/applications/misc/adobe-reader/builder.sh
Eelco Dolstra 8202de939d * Acrobat Reader -> Adobe Reader, and updated to version 9.0.1.
Removed the fastStart option; it seems to start fast enough without
  it nowadays.  Include CUPS in the RPATH so that the printer dialog
  box shows actual printers (especially useful since KDE 4 no longer
  include the kprinter program ;-).

svn path=/nixpkgs/trunk/; revision=15570
2009-05-12 14:49:01 +00:00

26 lines
780 B
Bash

source $stdenv/setup
echo "unpacking $src..."
tar xvfa $src
ensureDir $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/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