nixpkgs/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-10/builder.sh
Lluís Batlle i Rossell f3a4388ddc Updating flashplayer10 for i686, and adding it for x64.
I haven't tried the builder for i686, but I think it should work. The fix should be easy in any cas.
I don't think I've written pretty nix code, so I'm looking forward for revision.


svn path=/nixpkgs/trunk/; revision=14324
2009-03-04 11:04:16 +00:00

23 lines
358 B
Bash

source $stdenv/setup
dontStrip=1
dontPatchELF=1
unpackPhase() {
tar xvzf $src;
for a in *; do
if [ -d $a ]; then
cd $a
break
fi
done
}
installPhase() {
ensureDir $out/lib/mozilla/plugins
cp -p libflashplayer.so $out/lib/mozilla/plugins
patchelf --set-rpath "$rpath" $out/lib/mozilla/plugins/libflashplayer.so
}
genericBuild