mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
1dbb681b29
remove the need for a wrapper script. svn path=/nixpkgs/trunk/; revision=3996
25 lines
543 B
Bash
25 lines
543 B
Bash
. $stdenv/setup
|
|
|
|
echo "unpacking $src..."
|
|
tar xvfz $src
|
|
|
|
mkdir $out
|
|
|
|
echo "unpacking reader..."
|
|
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
|
|
|
|
glibc=$(cat $NIX_GCC/nix-support/orig-glibc)
|
|
|
|
fullPath=
|
|
for i in $libPath; do
|
|
fullPath=$fullPath${fullPath:+:}$i/lib
|
|
done
|
|
|
|
patchelf --interpreter $glibc/lib/ld-linux.so.* \
|
|
--set-rpath $fullPath \
|
|
$out/Reader/intellinux/bin/acroread
|