# $Id$ PNAME="flashplayer" PVER="11.2.202.275" PBUILD="r1" PCAT="media-gfx" DESCRIPTION="Macromedia Flash Player for Mozilla based browsers." HOMEPAGE="http://www.adobe.com/de/products/flashplayer/" DEPEND=">= x11-libs/gtk2+-2.24 >= net-misc/curl-7.21 >= dev-libs/nss-3.12" SRCFILE="install_flash_player_${PVER%%.*}_linux.i386.tar.gz" SRCDIR="${BUILDDIR}/install_flash_player_${PVER%%.*}_linux" sminclude mtools SRC_URI=( http://fpdownload.macromedia.com/get/${PNAME}/pdc/${PVER}/${SRCFILE} http://fpdownload.macromedia.com/get/${PNAME}/current/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) # adobe looks if the useragent contains 'Linux' to decide wether it's a linux box or not UP2USERAGENT="lynx Linux" UP2DATE="updatecmd http://get.adobe.com/de/flashplayer/ | grep 'Player version' | sed 's/.*version\ \(.*\)/\1/'" src_prepare() { munpack ${SRCFILE} ${SRCDIR} || 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 }