summary refs log tree commit diff
path: root/pkgs/applications/misc/acrobat-reader/builder.sh
blob: 27b4d39faf192488b55f6b55b9ee29332a6cc943 (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
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

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