2009-05-12 16:49:01 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
echo "unpacking $src..."
|
|
|
|
tar xvfa $src
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/Adobe/Reader9
|
2009-05-12 16:49:01 +02:00
|
|
|
|
|
|
|
echo "unpacking reader..."
|
2010-12-12 09:47:13 +01:00
|
|
|
set +e
|
2009-05-12 16:49:01 +02:00
|
|
|
tar xvf AdobeReader/COMMON.TAR -C $out
|
|
|
|
tar xvf AdobeReader/ILINXR.TAR -C $out
|
2010-12-12 09:47:13 +01:00
|
|
|
set -e
|
2009-05-12 16:49:01 +02:00
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2009-05-12 16:49:01 +02:00
|
|
|
ln -s $out/Adobe/Reader*/bin/acroread $out/bin/acroread
|