Contents of /smage/trunk/extras/flashplayer/flashplayer-26.0.0.151-r1.smage2
Parent Directory | Revision Log
Revision 11066 -
(show annotations)
(download)
Mon Sep 4 08:46:36 2017 UTC (7 years ago) by niro
File size: 2346 byte(s)
Mon Sep 4 08:46:36 2017 UTC (7 years ago) by niro
File size: 2346 byte(s)
auto added: ver bump to 26.0.0.151-r1
1 | # $Id$ |
2 | |
3 | PNAME="flashplayer" |
4 | PVER="26.0.0.151" |
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} ${PVER}" |
31 | "http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86_64} ${PVER}" |
32 | "http://www.adobe.com/products/eulas/pdfs/${LICENSE_SRCFILE} ${PVER}" |
33 | "mirror://${PNAME}/${SRCFILE_x86} ${PVER}" |
34 | "mirror://${PNAME}/${SRCFILE_x86_64} ${PVER}" |
35 | mirror://${PNAME}/mms.cfg |
36 | ) |
37 | |
38 | # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not |
39 | UP2USERAGENT="lynx Linux" |
40 | UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Version [0-9]' | sed 's/.*Version\ \(.*\)/\1/'" |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${PVER}/${SRCFILE} ${SRCDIR} # do not die here, upstream tarballs have trailing garbage |
45 | } |
46 | |
47 | # override gnome sminc |
48 | src_compile() { true ; } |
49 | |
50 | src_install() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | minstalldir /opt/netscape/plugins || die |
55 | minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die |
56 | |
57 | minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die |
58 | mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die |
59 | |
60 | # properties binary |
61 | minstallexec usr/bin/flash-player-properties || die |
62 | |
63 | # hicolor icon scheme |
64 | minstalldir /usr/share/icons/hicolor || die |
65 | local i |
66 | for i in 16 22 24 32 48 |
67 | do |
68 | minstalldir /usr/share/icons/hicolor/${i}x${i}/apps || die |
69 | minstallfile usr/share/icons/hicolor/${i}x${i}/apps/flash-player-properties.png \ |
70 | /usr/share/icons/hicolor/${i}x${i}/apps || die |
71 | done |
72 | |
73 | # create config |
74 | minstalldir /etc/adobe || die |
75 | minstallfile -s mms.cfg /etc/adobe || die |
76 | } |
77 | |
78 | postinstall() |
79 | { |
80 | gn2_update_icon_cache |
81 | } |
82 | |
83 | postremove() |
84 | { |
85 | gn2_update_icon_cache |
86 | } |