nixpkgs/pkgs/applications/misc/acrobat-reader/builder.sh
Eelco Dolstra 47d7e060a5 * Acrobat Reader upgraded to 5.0.10.
* Removed acroread dependency on patchelf (it's in stdenv).

svn path=/nixpkgs/trunk/; revision=2418
2005-03-15 15:16:40 +00:00

23 lines
674 B
Bash

. $stdenv/setup
echo "unpacking $src..."
tar xvfz $src
mkdir $out
echo "unpacking reader..."
tar xvf installers/COMMON.TAR -C $out
tar xvf installers/LINUXRDR.TAR -C $out
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
echo "#! $SHELL" > $out/bin/acroread.sh
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
rm $out/bin/acroread.sh.tmp
chmod 755 $out/bin/acroread.sh
mv $out/bin/acroread.sh $out/bin/acroread