about summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers/mozilla-plugins/flashplayer-11/builder.sh
blob: b0f8a2638c188407e9e64c88e55bd26d012e7f15 (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
source $stdenv/setup

dontStrip=1
dontPatchELF=1
sourceRoot=$TMPDIR

unpackPhase() {
    tar xvzf $src;
    for a in *; do
	if [ -d $a ]; then
		cd $a
		break
	fi
    done
}

installPhase() {
    mkdir -p $out/lib/mozilla/plugins
    cp -pv libflashplayer.so $out/lib/mozilla/plugins
    patchelf --set-rpath "$rpath" $out/lib/mozilla/plugins/libflashplayer.so
}

genericBuild