2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2004-09-25 22:27:40 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
2005-12-22 11:49:43 +01:00
|
|
|
if test -n "$fastStart"; then
|
2006-06-13 22:59:16 +02:00
|
|
|
echo "removing plugins..."
|
|
|
|
rm -v $(ls $out/Reader/intellinux/plug_ins/*.api | grep -v SearchFind)
|
2005-12-22 11:49:43 +01:00
|
|
|
fi
|
|
|
|
|
2005-03-25 16:13:46 +01:00
|
|
|
fullPath=
|
|
|
|
for i in $libPath; do
|
|
|
|
fullPath=$fullPath${fullPath:+:}$i/lib
|
|
|
|
done
|
|
|
|
|
2006-10-27 14:43:32 +02:00
|
|
|
patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
|
2005-10-03 00:24:09 +02:00
|
|
|
--set-rpath $fullPath \
|
|
|
|
$out/Reader/intellinux/bin/acroread
|