Magellan Linux

Annotation of /trunk/extras/flashplayer/flashplayer-10.0.22.87-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2778 - (hide annotations) (download)
Fri Jul 10 18:39:16 2009 UTC (14 years, 10 months ago) by niro
File size: 2083 byte(s)
-added UP2DATE
1 niro 1693 # $Id$
2    
3     PNAME="flashplayer"
4     PVER="10.0.22.87"
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.12
18     \$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')"
19    
20     SRCFILE="install_flash_player_${PVER:0:2}_linux.tar.gz"
21     SRCDIR="${BUILDDIR}/install_flash_player_${PVER:0:2}_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     )
34    
35 niro 2778 # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not
36     UP2USERAGENT="lynx Linux"
37     UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Player version' | sed 's/.*version\ \(.*\)/\1/'"
38    
39 niro 1693 src_prepare()
40     {
41     munpack ${SRCFILE} || die
42     munpack ${LIBCOMPAT_SRCFILE} || die
43     }
44    
45     src_install()
46     {
47     cd ${SRCDIR}
48    
49     minstalldir /opt/netscape/plugins || die
50     minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die
51    
52     minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die
53     mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die
54    
55     if [[ ${ARCH} = x86_64 ]]
56     then
57     minstalldir /etc/env.d || die
58     minstalldir /opt/flash-libcompat || die
59     minstallexec ${LIBCOMPAT_SRCDIR}/\* /opt/flash-libcompat || die
60     echo 'LDPATH="/opt/flash-libcompat"' > ${BINDIR}/etc/env.d/99flash-libcompat || die
61     fi
62    
63     minstalldocs Readme.txt || die
64     }
65    
66     postinstall()
67     {
68     if [[ -x /usr/bin/nspluginwrapper ]]
69     then
70     echo "Auto installing 32bit plugins ..."
71     nspluginwrapper -v -a -i
72     fi
73     }
74    
75     postremove()
76     {
77     if [[ -x /usr/bin/nspluginwrapper ]]
78     then
79     echo "Auto updating 32bit plugins ..."
80     nspluginwrapper -v -a -u
81     fi
82     }

Properties

Name Value
svn:keywords Id