Magellan Linux

Contents of /smage/branches/alx-0_6_0/extras/flashplayer/flashplayer-11.2.202.228-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3443 - (show annotations) (download)
Wed Apr 11 11:52:57 2012 UTC (12 years ago) by niro
File size: 1414 byte(s)
-fixed build
1 # $Id$
2
3 PNAME="flashplayer"
4 PVER="11.2.202.228"
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.24
13 >= net-misc/curl-7.21
14 >= dev-libs/nss-3.12"
15
16 SRCFILE="install_flash_player_${PVER%%.*}_linux.i386.tar.gz"
17 SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux"
18
19 sminclude mtools
20
21 SRC_URI=(
22 http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86}
23 http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86_64}
24 http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86}
25 http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86_64}
26 mirror://${PNAME}/${SRCFILE_x86}
27 mirror://${PNAME}/${SRCFILE_x86_64}
28 )
29
30 # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not
31 UP2USERAGENT="lynx Linux"
32 UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Player version' | sed 's/.*version\ \(.*\)/\1/'"
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} ${SRCDIR} || die
37 }
38
39 src_install()
40 {
41 cd ${SRCDIR}
42
43 minstalldir /opt/netscape/plugins || die
44 minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die
45
46 minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die
47 mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die
48
49 minstalldocs Readme.txt || die
50 }