Annotation of /smage/trunk/deprecated/flashplayer/flashplayer-11.2.202.310-r1.smage2
Parent Directory | Revision Log
Revision 14310 -
(hide annotations)
(download)
Wed Jul 8 09:42:48 2020 UTC (4 years, 2 months ago) by niro
File size: 2230 byte(s)
Wed Jul 8 09:42:48 2020 UTC (4 years, 2 months ago) by niro
File size: 2230 byte(s)
-moved to 'deprecated'
1 | niro | 5207 | # $Id$ |
2 | |||
3 | PNAME="flashplayer" | ||
4 | PVER="11.2.202.310" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="media-gfx" | ||
8 | |||
9 | DESCRIPTION="Macromedia Flash Player for Mozilla based browsers." | ||
10 | HOMEPAGE="http://www.adobe.com/de/products/flashplayer/" | ||
11 | |||
12 | DEPEND=">= x11-libs/gtk2+-2.24 | ||
13 | >= net-misc/curl-7 | ||
14 | >= dev-libs/nss-3.13 | ||
15 | >= x11-themes/hicolor-icon-theme-0.12" | ||
16 | |||
17 | SRCFILE_x86="install_flash_player_${PVER%%.*}_linux.i386.tar.gz" | ||
18 | SRCFILE_x86_64="install_flash_player_${PVER%%.*}_linux.x86_64.tar.gz" | ||
19 | |||
20 | SRCFILE="$(marchsrcfile)" | ||
21 | SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux" | ||
22 | |||
23 | LICENSE_PVER="20110809_1357" | ||
24 | LICENSE_SRCFILE="PlatformClients_PC_WWEULA_MULTI_${LICENSE_PVER}.pdf" | ||
25 | |||
26 | sminclude mtools gnome2 | ||
27 | |||
28 | # see: http://www.adobe.com/products/flashplayer/distribution3.html | ||
29 | SRC_URI=( | ||
30 | http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86} | ||
31 | http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86_64} | ||
32 | mirror://${PNAME}/${SRCFILE_x86} | ||
33 | mirror://${PNAME}/${SRCFILE_x86_64} | ||
34 | mirror://${PNAME}/mms.cfg | ||
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} # do not die here, upstream tarballs have trailing garbage | ||
44 | } | ||
45 | |||
46 | # override gnome sminc | ||
47 | src_compile() { true ; } | ||
48 | |||
49 | src_install() | ||
50 | { | ||
51 | cd ${SRCDIR} | ||
52 | |||
53 | minstalldir /opt/netscape/plugins || die | ||
54 | minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die | ||
55 | |||
56 | minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die | ||
57 | mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die | ||
58 | |||
59 | # properties binary | ||
60 | minstallexec usr/bin/flash-player-properties || die | ||
61 | |||
62 | # hicolor icon scheme | ||
63 | minstalldir /usr/share/icons/hicolor || die | ||
64 | local i | ||
65 | for i in 16 22 24 32 48 | ||
66 | do | ||
67 | minstalldir /usr/share/icons/hicolor/${i}x${i}/apps || die | ||
68 | minstallfile usr/share/icons/hicolor/${i}x${i}/apps/flash-player-properties.png \ | ||
69 | /usr/share/icons/hicolor/${i}x${i}/apps || die | ||
70 | done | ||
71 | |||
72 | # create config | ||
73 | minstalldir /etc/adobe || die | ||
74 | minstallfile -s mms.cfg /etc/adobe || die | ||
75 | } | ||
76 | |||
77 | postinstall() | ||
78 | { | ||
79 | gn2_update_icon_cache | ||
80 | } | ||
81 | |||
82 | postremove() | ||
83 | { | ||
84 | gn2_update_icon_cache | ||
85 | } |