Contents of /trunk/extras/flashplayer/flashplayer-11.1.102.55-r1.smage2
Parent Directory | Revision Log
Revision 11045 -
(show annotations)
(download)
Tue Feb 14 22:39:40 2012 UTC (12 years, 7 months ago) by niro
File size: 1505 byte(s)
Tue Feb 14 22:39:40 2012 UTC (12 years, 7 months ago) by niro
File size: 1505 byte(s)
-imported from NEXT
1 | # $Id$ |
2 | |
3 | PNAME="flashplayer" |
4 | PVER="11.1.102.55" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="media-gfx" |
8 | |
9 | DESCRIPTION="Macromedia Flash Player for Mozilla based browsers." |
10 | HOMEPAGE="http://www.adobe.com/de/products/flashplayer/" |
11 | |
12 | DEPEND=">= x11-libs/gtk2+-2.18 |
13 | >= net-misc/curl-7 |
14 | >= dev-libs/nss-3.12" |
15 | |
16 | SRCFILE_x86="install_flash_player_${PVER%%.*}_linux.i386.tar.gz" |
17 | SRCFILE_x86_64="install_flash_player_${PVER%%.*}_linux.x86_64.tar.gz" |
18 | |
19 | SRCFILE="$(marchsrcfile)" |
20 | SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux" |
21 | |
22 | sminclude mtools |
23 | |
24 | SRC_URI=( |
25 | http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86} |
26 | http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86_64} |
27 | http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86} |
28 | http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86_64} |
29 | mirror://${PNAME}/${SRCFILE_x86} |
30 | mirror://${PNAME}/${SRCFILE_x86_64} |
31 | ) |
32 | |
33 | # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not |
34 | UP2USERAGENT="lynx Linux" |
35 | UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Player version' | sed 's/.*version\ \(.*\)/\1/'" |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} ${SRCDIR} || die |
40 | } |
41 | |
42 | src_install() |
43 | { |
44 | cd ${SRCDIR} |
45 | |
46 | minstalldir /opt/netscape/plugins || die |
47 | minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die |
48 | |
49 | minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die |
50 | mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die |
51 | |
52 | minstalldocs Readme.txt || die |
53 | } |