# $Header: /magellan-cvs/smage/flashplayer/flashplayer-9.0.124.0-r1.smage2,v 1.1 2008/04/09 16:42:36 niro Exp $ PNAME="flashplayer" PVER="9.0.124.0" PBUILD="r1" PCATEGORIE="media-gfx" STATE="unstable" DESCRIPTION="Macromedia Flash Player for Mozilla based browsers." HOMEPAGE="http://www.adobe.com/de/products/flashplayer/" # x86_64 specific dependencies SDEPENDS_x86_64=">= net-www/nspluginwrapper-0.9" SPECIAL_VARS="SDEPENDS_x86_64" DEPEND=">= x11-libs/gtk2+-2.12 \$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')" SRCFILE="install_flash_player_${PVER:0:1}_linux.tar.gz" SRCDIR="${BUILDDIR}/install_flash_player_${PVER:0:1}_linux" sminclude mtools SRC_URI=( http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die } src_install() { cd ${SRCDIR} minstalldir /opt/netscape/plugins || die minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die minstallexec libflashplayer.so /usr/$(mlibdir)/nsbrowser/plugins || die mlink /usr/$(mlibdir)/nsbrowser/plugins/libflashplayer.so /opt/netscape/plugins || die minstalldocs Readme.txt || die } 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 }