Annotation of /branches/magellan-next/extras/flashplayer/flashplayer-11.1.102.55-r1.smage2
Parent Directory | Revision Log
Revision 9606 -
(hide annotations)
(download)
Tue Dec 27 19:13:12 2011 UTC (12 years, 4 months ago) by niro
File size: 1609 byte(s)
Tue Dec 27 19:13:12 2011 UTC (12 years, 4 months ago) by niro
File size: 1609 byte(s)
-fixed SRC_URI
1 | niro | 9605 | # $Id$ |
2 | |||
3 | PNAME="flashplayer" | ||
4 | PVER="11.1.102.55" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="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 | \$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')" | ||
16 | |||
17 | SRCFILE_x86="install_flash_player_${PVER%%.*}_linux.i386.tar.gz" | ||
18 | SRCFILE_x86_64="install_flash_player_${PVER%%.*}_linux.x86_64.tar.gz" | ||
19 | |||
20 | niro | 9606 | SRCFILE="$(eval echo \$SRCFILE_${ARCH/i*86/x86} | tr ';' '\n')" |
21 | niro | 9605 | SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux" |
22 | |||
23 | sminclude mtools | ||
24 | |||
25 | SRC_URI=( | ||
26 | niro | 9606 | http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86} |
27 | http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86_64} | ||
28 | niro | 9605 | http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86} |
29 | http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86_64} | ||
30 | mirror://${PNAME}/${SRCFILE_x86} | ||
31 | mirror://${PNAME}/${SRCFILE_x86_64} | ||
32 | ) | ||
33 | |||
34 | # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not | ||
35 | UP2USERAGENT="lynx Linux" | ||
36 | UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Player version' | sed 's/.*version\ \(.*\)/\1/'" | ||
37 | |||
38 | src_prepare() | ||
39 | { | ||
40 | munpack ${SRCFILE} ${SRCDIR} || die | ||
41 | } | ||
42 | |||
43 | src_install() | ||
44 | { | ||
45 | cd ${SRCDIR} | ||
46 | |||
47 | minstalldir /opt/netscape/plugins || die | ||
48 | minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die | ||
49 | |||
50 | minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die | ||
51 | mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die | ||
52 | |||
53 | minstalldocs Readme.txt || die | ||
54 | } |