2004-09-25 22:27:40 +02:00
|
|
|
. $stdenv/setup
|
|
|
|
|
|
|
|
echo "unpacking $src..."
|
|
|
|
tar xvfz $src
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
|
|
|
|
echo "unpacking reader..."
|
2005-03-15 16:16:40 +01:00
|
|
|
tar xvf installers/COMMON.TAR -C $out
|
|
|
|
tar xvf installers/LINUXRDR.TAR -C $out
|
2004-09-25 22:27:40 +02:00
|
|
|
|
|
|
|
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
|
|
|
|
|
|
|
|
patchelf --interpreter $glibc/lib/ld-linux.so.* $out/Reader/intellinux/bin/acroread
|
|
|
|
|
|
|
|
sed "s^REPLACE_ME^$out/Reader^" $out/bin/acroread.sh > $out/bin/acroread.sh.tmp
|
2005-03-15 16:16:40 +01:00
|
|
|
echo "#! $SHELL" > $out/bin/acroread.sh
|
2004-09-25 22:27:40 +02:00
|
|
|
echo "LD_LIBRARY_PATH=$libXt/lib:$libXp/lib:$libXext/lib:$libX11/lib" >> $out/bin/acroread.sh
|
|
|
|
cat $out/bin/acroread.sh.tmp >> $out/bin/acroread.sh
|
2005-03-15 16:16:40 +01:00
|
|
|
rm $out/bin/acroread.sh.tmp
|
2004-09-25 22:27:40 +02:00
|
|
|
chmod 755 $out/bin/acroread.sh
|
|
|
|
mv $out/bin/acroread.sh $out/bin/acroread
|