Magellan Linux

Diff of /smage/branches/alx-0_6_0/extras/flashplayer/flashplayer-11.2.202.228-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3442 by niro, Tue Apr 10 21:52:31 2012 UTC revision 3443 by niro, Wed Apr 11 11:52:57 2012 UTC
# Line 9  PCATEGORIE="media-gfx" Line 9  PCATEGORIE="media-gfx"
9  DESCRIPTION="Macromedia Flash Player for Mozilla based browsers."  DESCRIPTION="Macromedia Flash Player for Mozilla based browsers."
10  HOMEPAGE="http://www.adobe.com/de/products/flashplayer/"  HOMEPAGE="http://www.adobe.com/de/products/flashplayer/"
11    
 # x86_64 specific dependencies  
 SDEPENDS_x86_64=">= net-www/nspluginwrapper-0.9"  
 SPECIAL_VARS="SDEPENDS_x86_64"  
   
 # needs libcurl!  
12  DEPEND=">= x11-libs/gtk2+-2.24  DEPEND=">= x11-libs/gtk2+-2.24
13   >= net-misc/curl-7.21   >= net-misc/curl-7.21
14   \$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')"   >= dev-libs/nss-3.12"
15    
16  SRCFILE="install_flash_player_${PVER%%.*}_linux.tar.gz"  SRCFILE="install_flash_player_${PVER%%.*}_linux.i386.tar.gz"
17  SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux"  SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux"
18    
 LIBCOMPAT_PVER="0.2"  
 LIBCOMPAT_SRCFILE="flash-libcompat-${LIBCOMPAT_PVER}.tar.bz2"  
 LIBCOMPAT_SRCDIR="${BUILDDIR}/flash-libcompat-${LIBCOMPAT_PVER}"  
   
19  sminclude mtools  sminclude mtools
20    
21  SRC_URI=(  SRC_URI=(
22   http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE}   http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86}
23   http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${LIBCOMPAT_SRCFILE}   http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE_x86_64}
24   mirror://${PNAME}/${SRCFILE}   http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86}
25   mirror://${PNAME}/${LIBCOMPAT_SRCFILE}   http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE_x86_64}
26     mirror://${PNAME}/${SRCFILE_x86}
27     mirror://${PNAME}/${SRCFILE_x86_64}
28  )  )
29    
30  # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not  # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not
# Line 41  UP2DATE="updatecmd http://get.adobe.com/ Line 34  UP2DATE="updatecmd http://get.adobe.com/
34  src_prepare()  src_prepare()
35  {  {
36   munpack ${SRCFILE} ${SRCDIR} || die   munpack ${SRCFILE} ${SRCDIR} || die
  munpack ${LIBCOMPAT_SRCFILE} || die  
37  }  }
38    
39  src_install()  src_install()
# Line 54  src_install() Line 46  src_install()
46   minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die   minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die
47   mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die   mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die
48    
  if [[ ${ARCH} = x86_64 ]]  
  then  
  minstalldir /etc/env.d || die  
  minstalldir /opt/flash-libcompat || die  
  minstallexec ${LIBCOMPAT_SRCDIR}/\* /opt/flash-libcompat || die  
  echo 'LDPATH="/opt/flash-libcompat"' > ${BINDIR}/etc/env.d/99flash-libcompat || die  
  fi  
   
49   minstalldocs Readme.txt || die   minstalldocs Readme.txt || die
50  }  }
   
 postinstall()  
 {  
  if [[ -x /usr/bin/nspluginwrapper ]]  
  then  
  echo "Auto installing 32bit plugins ..."  
  nspluginwrapper -v -a -i  
  fi  
 }  
   
 postremove()  
 {  
  if [[ -x /usr/bin/nspluginwrapper ]]  
  then  
  echo "Auto updating 32bit plugins ..."  
  nspluginwrapper -v -a -u  
  fi  
 }  

Legend:
Removed from v.3442  
changed lines
  Added in v.3443