Contents of /branches/R11-stable/extras/flashplayer/flashplayer-11.2.202.442-r1.smage2
Parent Directory | Revision Log
Revision 24252 -
(show annotations)
(download)
Fri Feb 20 09:34:43 2015 UTC (9 years, 7 months ago) by niro
File size: 3151 byte(s)
Fri Feb 20 09:34:43 2015 UTC (9 years, 7 months ago) by niro
File size: 3151 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="flashplayer" |
4 | PVER="11.2.202.442" |
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.16 |
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 xdg gtk2 fdo-mime |
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} ${PVER}" |
31 | "http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86_64} ${PVER}" |
32 | #"http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86} ${PVER}" |
33 | #"http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86_64} ${PVER}" |
34 | http://www.adobe.com/products/eulas/pdfs/${LICENSE_SRCFILE} |
35 | "mirror://${PNAME}/${SRCFILE_x86} ${PVER}" |
36 | "mirror://${PNAME}/${SRCFILE_x86_64} ${PVER}" |
37 | mirror://${PNAME}/mms.cfg |
38 | ) |
39 | |
40 | # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not |
41 | UP2USERAGENT="lynx Linux" |
42 | UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Version [0-9]' | sed 's/.*Version\ \(.*\)/\1/'" |
43 | |
44 | src_prepare() |
45 | { |
46 | munpack ${PVER}/${SRCFILE} ${SRCDIR} # do not die here, upstream tarballs have trailing garbage |
47 | } |
48 | |
49 | # override gnome sminc |
50 | src_compile() { true ; } |
51 | |
52 | src_install() |
53 | { |
54 | cd ${SRCDIR} |
55 | |
56 | minstalldir /opt/netscape/plugins || die |
57 | minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die |
58 | |
59 | minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die |
60 | mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die |
61 | |
62 | # properties desktop icon and binary |
63 | minstallpixmap usr/share/pixmaps/flash-player-properties.png || die |
64 | minstallxdg --file usr/share/applications/flash-player-properties.desktop --vendor adobe || die |
65 | minstallexec usr/bin/flash-player-properties || die |
66 | |
67 | # kde4 service menu and so-lib |
68 | minstallxdg --file usr/share/kde4/services/kcm_adobe_flash_player.desktop --destination-dir /usr/share/kde4/services || die |
69 | minstalldir /usr/$(mlibdir)/kde4 || die |
70 | minstallexec usr/$(mlibdir)/kde4/kcm_adobe_flash_player.so /usr/$(mlibdir)/kde4 || die |
71 | |
72 | # hicolor icon scheme |
73 | minstalldir /usr/share/icons/hicolor || die |
74 | local i |
75 | for i in 16 22 24 32 48 |
76 | do |
77 | minstalldir /usr/share/icons/hicolor/${i}x${i}/apps || die |
78 | minstallfile usr/share/icons/hicolor/${i}x${i}/apps/flash-player-properties.png \ |
79 | /usr/share/icons/hicolor/${i}x${i}/apps || die |
80 | done |
81 | |
82 | # create config |
83 | minstalldir /etc/adobe || die |
84 | minstallfile -s mms.cfg /etc/adobe || die |
85 | |
86 | cp ${SOURCEDIR}/${PNAME}/${LICENSE_SRCFILE} LICENSE.pdf || die |
87 | minstalldocs readme.txt LICENSE.pdf || die |
88 | } |
89 | |
90 | postinstall() |
91 | { |
92 | gtk2_update_icon_cache |
93 | fdo-mime_update_desktop_db |
94 | } |
95 | |
96 | postremove() |
97 | { |
98 | gtk2_update_icon_cache |
99 | fdo-mime_update_desktop_db |
100 | } |