Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


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