Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6510 - (show annotations) (download)
Fri Aug 27 23:10:30 2010 UTC (13 years, 8 months ago) by niro
File size: 2198 byte(s)
auto added: ver bump to 10.1.82.76-r1
1 # $Id: flashplayer-10.0.45.2-r1.smage2 4993 2010-02-27 15:10:38Z niro $
2
3 PNAME="flashplayer"
4 PVER="10.1.82.76"
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 \$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')"
19
20 SRCFILE="install_flash_player_${PVER%%.*}_linux.tar.gz"
21 SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux"
22
23 LIBCOMPAT_PVER="0.2"
24 LIBCOMPAT_SRCFILE="flash-libcompat-${LIBCOMPAT_PVER}.tar.bz2"
25 LIBCOMPAT_SRCDIR="${BUILDDIR}/flash-libcompat-${LIBCOMPAT_PVER}"
26
27 sminclude mtools
28
29 SRC_URI=(
30 http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE}
31 http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${LIBCOMPAT_SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 mirror://${PNAME}/${LIBCOMPAT_SRCFILE}
34 )
35
36 # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not
37 UP2USERAGENT="lynx Linux"
38 UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Player version' | sed 's/.*version\ \(.*\)/\1/'"
39
40 src_prepare()
41 {
42 munpack ${SRCFILE} ${SRCDIR} || die
43 munpack ${LIBCOMPAT_SRCFILE} || die
44 }
45
46 src_install()
47 {
48 cd ${SRCDIR}
49
50 minstalldir /opt/netscape/plugins || die
51 minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die
52
53 minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die
54 mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die
55
56 if [[ ${ARCH} = x86_64 ]]
57 then
58 minstalldir /etc/env.d || die
59 minstalldir /opt/flash-libcompat || die
60 minstallexec ${LIBCOMPAT_SRCDIR}/\* /opt/flash-libcompat || die
61 echo 'LDPATH="/opt/flash-libcompat"' > ${BINDIR}/etc/env.d/99flash-libcompat || die
62 fi
63
64 minstalldocs Readme.txt || die
65 }
66
67 postinstall()
68 {
69 if [[ -x /usr/bin/nspluginwrapper ]]
70 then
71 echo "Auto installing 32bit plugins ..."
72 nspluginwrapper -v -a -i
73 fi
74 }
75
76 postremove()
77 {
78 if [[ -x /usr/bin/nspluginwrapper ]]
79 then
80 echo "Auto updating 32bit plugins ..."
81 nspluginwrapper -v -a -u
82 fi
83 }