skim: 0.15.7 -> 0.16.0 (#376410)
[NixPkgs.git] / pkgs / by-name / wt / wtk / builder.sh
blob5e90f63c7cbaaf3e3315a9e91979697cef3e0246
1 mkdir unzipped
2 pushd unzipped
3 unzip $src || true
4 popd
6 mkdir -p $out
7 mv unzipped/* $out/
9 # Remove crap in the root directory.
10 for file in $out/*
12 if test -f $file ; then
13 rm $file
15 done
17 # Set the dynamic linker.
18 rpath=
19 for i in $libraries; do
20 rpath=$rpath${rpath:+:}$i/lib
21 done
22 find $out -type f -perm -0100 \
23 -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" {} \;
24 find $out -type f -perm -0100 \
25 -exec patchelf --set-rpath "$rpath" {} \;