14 |
>= dev-libs/nss-3.13 |
>= dev-libs/nss-3.13 |
15 |
>= x11-themes/hicolor-icon-theme-0.12" |
>= x11-themes/hicolor-icon-theme-0.12" |
16 |
|
|
17 |
SRCFILE_x86="install_flash_player_${PVER%%.*}_linux.i386.tar.gz" |
SRCFILE_PPAPI_x86="flash_player_ppapi_linux.i386.tar.gz" |
18 |
SRCFILE_x86_64="install_flash_player_${PVER%%.*}_linux.x86_64.tar.gz" |
SRCFILE_PPAPI_x86_64="flash_player_ppapi_linux.x86_64.tar.gz" |
19 |
|
|
20 |
SRCFILE="$(marchsrcfile)" |
SRCFILE_NPAPI_x86="flash_player_npapi_linux.i386.tar.gz" |
21 |
SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux" |
SRCFILE_NPAPI_x86_64="flash_player_npapi_linux.x86_64.tar.gz" |
22 |
|
|
23 |
|
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 |
LICENSE_PVER="20110809_1357" |
LICENSE_PVER="20110809_1357" |
30 |
LICENSE_SRCFILE="PlatformClients_PC_WWEULA_MULTI_${LICENSE_PVER}.pdf" |
LICENSE_SRCFILE="PlatformClients_PC_WWEULA_MULTI_${LICENSE_PVER}.pdf" |
33 |
|
|
34 |
# see: http://www.adobe.com/products/flashplayer/distribution3.html |
# see: http://www.adobe.com/products/flashplayer/distribution3.html |
35 |
SRC_URI=( |
SRC_URI=( |
36 |
"http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86} ${PVER}" |
"http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_PPAPI_x86} ${PVER}" |
37 |
"http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86_64} ${PVER}" |
"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 |
"http://www.adobe.com/products/eulas/pdfs/${LICENSE_SRCFILE} ${PVER}" |
"http://www.adobe.com/products/eulas/pdfs/${LICENSE_SRCFILE} ${PVER}" |
41 |
"mirror://${PNAME}/${SRCFILE_x86} ${PVER}" |
"mirror://${PNAME}/${PVER}/${SRCFILE_PPAPI_x86} ${PVER}" |
42 |
"mirror://${PNAME}/${SRCFILE_x86_64} ${PVER}" |
"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 |
mirror://${PNAME}/mms.cfg |
mirror://${PNAME}/mms.cfg |
46 |
) |
) |
47 |
|
|
51 |
|
|
52 |
src_prepare() |
src_prepare() |
53 |
{ |
{ |
54 |
munpack ${PVER}/${SRCFILE} ${SRCDIR} # do not die here, upstream tarballs have trailing garbage |
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 |
} |
} |
57 |
|
|
58 |
# override gnome sminc |
# override gnome sminc |
60 |
|
|
61 |
src_install() |
src_install() |
62 |
{ |
{ |
63 |
cd ${SRCDIR} |
# install npapi |
64 |
|
cd ${SRCDIR_NPAPI} |
65 |
|
|
66 |
minstalldir /opt/netscape/plugins || die |
minstalldir /opt/netscape/plugins || die |
67 |
minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die |
minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die |
85 |
# create config |
# create config |
86 |
minstalldir /etc/adobe || die |
minstalldir /etc/adobe || die |
87 |
minstallfile -s mms.cfg /etc/adobe || die |
minstallfile -s mms.cfg /etc/adobe || die |
88 |
|
|
89 |
|
# install ppapi |
90 |
|
cd ${SRCDIR_PPAPI} |
91 |
|
minstallexec libpepflashplayer.so /usr/$(mlibdir)/chromium/PepperFlash || die |
92 |
|
minstallfile manifest.json /usr/$(mlibdir)/chromium/PepperFlash || die |
93 |
} |
} |
94 |
|
|
95 |
postinstall() |
postinstall() |