summary refs log tree commit diff
path: root/pkgs/applications/misc/acrobat-reader/builder.sh
blob: d37919858f72f8a3523c65a3004c947b58d71f51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
source $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

if test -n "$fastStart"; then
    echo "removing plugins..."
    rm -v $(ls $out/Reader/intellinux/plug_ins/*.api | grep -v SearchFind)
fi

fullPath=
for i in $libPath; do
    fullPath=$fullPath${fullPath:+:}$i/lib
done

patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
    --set-rpath $fullPath \
    $out/Reader/intellinux/bin/acroread