Annotation of /trunk/extras/flashplayer/flashplayer-10.0.22.87-r1.smage2
Parent Directory | Revision Log
Revision 1693 -
(hide annotations)
(download)
Thu May 14 17:33:30 2009 UTC (15 years, 1 month ago) by niro
File size: 1854 byte(s)
Thu May 14 17:33:30 2009 UTC (15 years, 1 month ago) by niro
File size: 1854 byte(s)
auto added: ver bump to 10.0.22.87-r1
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 | src_prepare() | ||
36 | { | ||
37 | munpack ${SRCFILE} || die | ||
38 | munpack ${LIBCOMPAT_SRCFILE} || die | ||
39 | } | ||
40 | |||
41 | src_install() | ||
42 | { | ||
43 | cd ${SRCDIR} | ||
44 | |||
45 | minstalldir /opt/netscape/plugins || die | ||
46 | minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die | ||
47 | |||
48 | minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die | ||
49 | mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die | ||
50 | |||
51 | if [[ ${ARCH} = x86_64 ]] | ||
52 | then | ||
53 | minstalldir /etc/env.d || die | ||
54 | minstalldir /opt/flash-libcompat || die | ||
55 | minstallexec ${LIBCOMPAT_SRCDIR}/\* /opt/flash-libcompat || die | ||
56 | echo 'LDPATH="/opt/flash-libcompat"' > ${BINDIR}/etc/env.d/99flash-libcompat || die | ||
57 | fi | ||
58 | |||
59 | minstalldocs Readme.txt || die | ||
60 | } | ||
61 | |||
62 | postinstall() | ||
63 | { | ||
64 | if [[ -x /usr/bin/nspluginwrapper ]] | ||
65 | then | ||
66 | echo "Auto installing 32bit plugins ..." | ||
67 | nspluginwrapper -v -a -i | ||
68 | fi | ||
69 | } | ||
70 | |||
71 | postremove() | ||
72 | { | ||
73 | if [[ -x /usr/bin/nspluginwrapper ]] | ||
74 | then | ||
75 | echo "Auto updating 32bit plugins ..." | ||
76 | nspluginwrapper -v -a -u | ||
77 | fi | ||
78 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |