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