Magellan Linux

Contents of /trunk/extras/flashplayer/flashplayer-11.2.202.236-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12914 - (show annotations) (download)
Mon Jul 9 08:12:54 2012 UTC (11 years, 11 months ago) by niro
File size: 2905 byte(s)
auto added: ver bump to 11.2.202.236-r1
1 # $Id$
2
3 PNAME="flashplayer"
4 PVER="11.2.202.236"
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="20100108_1657"
24 LICENSE_SRCFILE="PlatformClients_PC_WWEULA_Combined_${LICENSE_PVER}.pdf"
25
26 sminclude mtools xdg gnome2
27
28 SRC_URI=(
29 #http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86}
30 #http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86_64}
31 http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86}
32 http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86_64}
33 http://www.adobe.com/products/eulas/pdfs/${LICENSE_SRCFILE}
34 mirror://${PNAME}/${SRCFILE_x86}
35 mirror://${PNAME}/${SRCFILE_x86_64}
36 mirror://${PNAME}/mms.cfg
37 )
38
39 # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not
40 UP2USERAGENT="lynx Linux"
41 UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Player version' | sed 's/.*version\ \(.*\)/\1/'"
42
43 src_prepare()
44 {
45 munpack ${SRCFILE} ${SRCDIR} # do not die here, upstream tarballs have trailing garbage
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 # properties desktop icon and binary
59 minstallpixmap usr/share/pixmaps/flash-player-properties.png || die
60 minstallxdg --file usr/share/applications/flash-player-properties.desktop --vendor adobe || die
61 minstallexec usr/bin/flash-player-properties || die
62
63 # kde4 service menu and so-lib
64 minstallxdg --file usr/share/kde4/services/kcm_adobe_flash_player.desktop --destination-dir /usr/share/kde4/services || die
65 minstalldir /usr/$(mlibdir)/kde4 || die
66 minstallexec usr/$(mlibdir)/kde4/kcm_adobe_flash_player.so /usr/$(mlibdir)/kde4 || die
67
68 # hicolor icon scheme
69 minstalldir /usr/share/icons/hicolor || die
70 local i
71 for i in 16 22 24 32 48
72 do
73 minstalldir /usr/share/icons/hicolor/${i}x${i}/apps || die
74 minstallfile usr/share/icons/hicolor/${i}x${i}/apps/flash-player-properties.png \
75 /usr/share/icons/hicolor/${i}x${i}/apps || die
76 done
77
78 # create config
79 minstalldir /etc/adobe || die
80 minstallfile -s mms.cfg /etc/adobe || die
81
82 cp ${SOURCEDIR}/${PNAME}/${LICENSE_SRCFILE} LICENSE.pdf || die
83 minstalldocs readme.txt LICENSE.pdf || die
84 }
85
86 postinstall()
87 {
88 gn2_update_icon_cache
89 }
90
91 postremove()
92 {
93 gn2_update_icon_cache
94 }