Magellan Linux

Annotation of /branches/magellan-next/extras/flashplayer/flashplayer-11.1.102.55-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9605 - (hide annotations) (download)
Tue Dec 27 19:10:23 2011 UTC (12 years, 4 months ago) by niro
File size: 1456 byte(s)
auto added: ver bump to 11.1.102.55-r1
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     SRCFILE=$(eval echo \$SRCFILE_${ARCH/i*86/x86} | tr ';' '\n')
21     SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux"
22    
23     sminclude mtools
24    
25     SRC_URI=(
26     http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86}
27     http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86_64}
28     mirror://${PNAME}/${SRCFILE_x86}
29     mirror://${PNAME}/${SRCFILE_x86_64}
30     )
31    
32     # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not
33     UP2USERAGENT="lynx Linux"
34     UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Player version' | sed 's/.*version\ \(.*\)/\1/'"
35    
36     src_prepare()
37     {
38     munpack ${SRCFILE} ${SRCDIR} || die
39     }
40    
41     src_install()
42     {
43     cd ${SRCDIR}
44    
45     minstalldir /opt/netscape/plugins || die
46     minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die
47    
48     minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die
49     mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die
50    
51     minstalldocs Readme.txt || die
52     }