Contents of /smage/branches/alx-0_6_0/extras/flashplayer/flashplayer-10.3.181.34-r1.smage2
Parent Directory | Revision Log
Revision 2707 -
(show annotations)
(download)
Thu Jul 14 14:44:24 2011 UTC (12 years, 11 months ago) by niro
File size: 2157 byte(s)
Thu Jul 14 14:44:24 2011 UTC (12 years, 11 months ago) by niro
File size: 2157 byte(s)
-fixed missing libcurl dependency
1 | # $Id$ |
2 | |
3 | PNAME="flashplayer" |
4 | PVER="10.3.181.34" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="media-gfx" |
8 | |
9 | DESCRIPTION="Macromedia Flash Player for Mozilla based browsers." |
10 | HOMEPAGE="http://www.adobe.com/de/products/flashplayer/" |
11 | |
12 | # x86_64 specific dependencies |
13 | SDEPENDS_x86_64=">= net-www/nspluginwrapper-0.9" |
14 | SPECIAL_VARS="SDEPENDS_x86_64" |
15 | |
16 | # needs libcurl! |
17 | DEPEND=">= x11-libs/gtk2+-2.24 |
18 | >= net-misc/curl-7.21 |
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 | } |