Magellan Linux

Contents of /trunk/extras/flashplayer/flashplayer-10.3.183.5-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8912 - (show annotations) (download)
Fri Aug 19 17:17:24 2011 UTC (12 years, 8 months ago) by niro
File size: 2153 byte(s)
auto added: ver bump to 10.3.183.5-r1
1 # $Id$
2
3 PNAME="flashplayer"
4 PVER="10.3.183.5"
5 PBUILD="r1"
6
7 PCATEGORIE="media-gfx"
8 STATE="unstable"
9
10 DESCRIPTION="Macromedia Flash Player for Mozilla based browsers."
11 HOMEPAGE="http://www.adobe.com/de/products/flashplayer/"
12
13 # x86_64 specific dependencies
14 SDEPENDS_x86_64=">= net-www/nspluginwrapper-0.9"
15 SPECIAL_VARS="SDEPENDS_x86_64"
16
17 DEPEND=">= x11-libs/gtk2+-2.18
18 >= net-misc/curl-7
19 \$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')"
20
21 SRCFILE="install_flash_player_${PVER%%.*}_linux.tar.gz"
22 SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux"
23
24 LIBCOMPAT_PVER="0.2"
25 LIBCOMPAT_SRCFILE="flash-libcompat-${LIBCOMPAT_PVER}.tar.bz2"
26 LIBCOMPAT_SRCDIR="${BUILDDIR}/flash-libcompat-${LIBCOMPAT_PVER}"
27
28 sminclude mtools
29
30 SRC_URI=(
31 http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE}
32 http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${LIBCOMPAT_SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 mirror://${PNAME}/${LIBCOMPAT_SRCFILE}
35 )
36
37 # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not
38 UP2USERAGENT="lynx Linux"
39 UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Player version' | sed 's/.*version\ \(.*\)/\1/'"
40
41 src_prepare()
42 {
43 munpack ${SRCFILE} ${SRCDIR} || die
44 munpack ${LIBCOMPAT_SRCFILE} || die
45 }
46
47 src_install()
48 {
49 cd ${SRCDIR}
50
51 minstalldir /opt/netscape/plugins || die
52 minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die
53
54 minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die
55 mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die
56
57 if [[ ${ARCH} = x86_64 ]]
58 then
59 minstalldir /etc/env.d || die
60 minstalldir /opt/flash-libcompat || die
61 minstallexec ${LIBCOMPAT_SRCDIR}/\* /opt/flash-libcompat || die
62 echo 'LDPATH="/opt/flash-libcompat"' > ${BINDIR}/etc/env.d/99flash-libcompat || die
63 fi
64
65 minstalldocs Readme.txt || die
66 }
67
68 postinstall()
69 {
70 if [[ -x /usr/bin/nspluginwrapper ]]
71 then
72 echo "Auto installing 32bit plugins ..."
73 nspluginwrapper -v -a -i
74 fi
75 }
76
77 postremove()
78 {
79 if [[ -x /usr/bin/nspluginwrapper ]]
80 then
81 echo "Auto updating 32bit plugins ..."
82 nspluginwrapper -v -a -u
83 fi
84 }