2004-09-25 21:27:40 +01: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 21:27:40 +01:00
|
|
|
|
|
|
|
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
|
|
|
|
|
|
|
|
patchelf --interpreter $glibc/lib/ld-linux.so.* $out/Reader/intellinux/bin/acroread
|
|
|
|
|
2005-03-25 15:13:46 +00:00
|
|
|
fullPath=
|
|
|
|
for i in $libPath; do
|
|
|
|
fullPath=$fullPath${fullPath:+:}$i/lib
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "#! $SHELL" > $out/bin/acroread.tmp
|
|
|
|
echo "LD_LIBRARY_PATH=$fullPath\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH" >> $out/bin/acroread.tmp
|
|
|
|
cat $out/bin/acroread >> $out/bin/acroread.tmp
|
|
|
|
chmod 755 $out/bin/acroread.tmp
|
|
|
|
mv $out/bin/acroread.tmp $out/bin/acroread
|