Magellan Linux

Annotation of /smage/trunk/extras/flashplayer/flashplayer-26.0.0.151-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11068 - (hide annotations) (download)
Mon Sep 4 09:31:19 2017 UTC (6 years, 8 months ago) by niro
File size: 3317 byte(s)
auto added: ver bump to 26.0.0.151-r1
1 niro 11066 # $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 niro 11067 SRCFILE_PPAPI_x86="flash_player_ppapi_linux.i386.tar.gz"
18     SRCFILE_PPAPI_x86_64="flash_player_ppapi_linux.x86_64.tar.gz"
19 niro 11066
20 niro 11067 SRCFILE_NPAPI_x86="flash_player_npapi_linux.i386.tar.gz"
21     SRCFILE_NPAPI_x86_64="flash_player_npapi_linux.x86_64.tar.gz"
22 niro 11066
23 niro 11067 SRCFILE_PPAPI="$(marchsrcfile SRCFILE_PPAPI)"
24     SRCDIR_PPAPI="${BUILDDIR}/flash_player_ppapi_${PVER%%.*}_linux"
25    
26     SRCFILE_NPAPI="$(marchsrcfile SRCFILE_NPAPI)"
27     SRCDIR_NPAPI="${BUILDDIR}/flash_player_npapi_${PVER%%.*}_linux"
28    
29 niro 11066 LICENSE_PVER="20110809_1357"
30     LICENSE_SRCFILE="PlatformClients_PC_WWEULA_MULTI_${LICENSE_PVER}.pdf"
31    
32     sminclude mtools gnome2
33    
34     # see: http://www.adobe.com/products/flashplayer/distribution3.html
35     SRC_URI=(
36 niro 11067 "http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_PPAPI_x86} ${PVER}"
37     "http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_PPAPI_x86_64} ${PVER}"
38     "http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_NPAPI_x86} ${PVER}"
39     "http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_NPAPI_x86_64} ${PVER}"
40 niro 11066 "http://www.adobe.com/products/eulas/pdfs/${LICENSE_SRCFILE} ${PVER}"
41 niro 11067 "mirror://${PNAME}/${PVER}/${SRCFILE_PPAPI_x86} ${PVER}"
42     "mirror://${PNAME}/${PVER}/${SRCFILE_PPAPI_x86_64} ${PVER}"
43     "mirror://${PNAME}/${PVER}/${SRCFILE_NPAPI_x86} ${PVER}"
44     "mirror://${PNAME}/${PVER}/${SRCFILE_NPAPI_x86_64} ${PVER}"
45 niro 11066 mirror://${PNAME}/mms.cfg
46     )
47    
48     # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not
49     UP2USERAGENT="lynx Linux"
50     UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Version [0-9]' | sed 's/.*Version\ \(.*\)/\1/'"
51    
52     src_prepare()
53     {
54 niro 11067 munpack ${PVER}/${SRCFILE_PPAPI} ${SRCDIR_PPAPI} # do not die here, upstream tarballs have trailing garbage
55     munpack ${PVER}/${SRCFILE_NPAPI} ${SRCDIR_NPAPI} # do not die here, upstream tarballs have trailing garbage
56 niro 11066 }
57    
58     # override gnome sminc
59     src_compile() { true ; }
60    
61     src_install()
62     {
63 niro 11067 # install npapi
64     cd ${SRCDIR_NPAPI}
65 niro 11066
66     minstalldir /opt/netscape/plugins || die
67     minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die
68    
69     minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die
70     mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die
71    
72     # properties binary
73     minstallexec usr/bin/flash-player-properties || die
74    
75     # hicolor icon scheme
76     minstalldir /usr/share/icons/hicolor || die
77     local i
78     for i in 16 22 24 32 48
79     do
80     minstalldir /usr/share/icons/hicolor/${i}x${i}/apps || die
81     minstallfile usr/share/icons/hicolor/${i}x${i}/apps/flash-player-properties.png \
82     /usr/share/icons/hicolor/${i}x${i}/apps || die
83     done
84    
85     # create config
86     minstalldir /etc/adobe || die
87     minstallfile -s mms.cfg /etc/adobe || die
88 niro 11067
89     # install ppapi
90     cd ${SRCDIR_PPAPI}
91 niro 11068 minstalldir /usr/$(mlibdir)/chromium/PepperFlash || die
92 niro 11067 minstallexec libpepflashplayer.so /usr/$(mlibdir)/chromium/PepperFlash || die
93     minstallfile manifest.json /usr/$(mlibdir)/chromium/PepperFlash || die
94 niro 11066 }
95    
96     postinstall()
97     {
98     gn2_update_icon_cache
99     }
100    
101     postremove()
102     {
103     gn2_update_icon_cache
104     }