2004-09-25 20:27:40 +00:00
|
|
|
. $stdenv/setup
|
|
|
|
|
|
|
|
echo "unpacking $src..."
|
|
|
|
tar xvfz $src
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
|
|
|
|
echo "unpacking reader..."
|
2005-03-25 15:13:46 +00:00
|
|
|
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
|
2004-09-25 20:27:40 +00:00
|
|
|
|
|
|
|
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
|
|
|
|
|
2005-03-25 15:13:46 +00:00
|
|
|
fullPath=
|
|
|
|
for i in $libPath; do
|
|
|
|
fullPath=$fullPath${fullPath:+:}$i/lib
|
|
|
|
done
|
|
|
|
|
2005-10-02 22:24:09 +00:00
|
|
|
patchelf --interpreter $glibc/lib/ld-linux.so.* \
|
|
|
|
--set-rpath $fullPath \
|
|
|
|
$out/Reader/intellinux/bin/acroread
|