Commit 42116f36 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add flashplayer

parent b18be7cc
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
PKGNAME=$PRODUCT-$VERSION.tar
erc unpack $TAR
cd * || fatal
mkdir -p usr/bin/
mv flashplayer usr/bin/
mkdir -p usr/share/doc/flashplayer/
mv LGPL license.pdf usr/share/doc/flashplayer/
erc pack $PKGNAME usr/bin/flashplayer usr/share/doc/flashplayer
return_tar $PKGNAME
#!/bin/sh
PKGNAME=flashplayer
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Adobe Flash Player from the official site"
URL="http://www.adobe.com/support/flashplayer/downloads.html"
. $(dirname $0)/common.sh
VERSION=32.0.0.465
PKGURL=https://fpdownload.macromedia.com/pub/flashplayer/updaters/32/flash_player_sa_linux.x86_64.tar.gz
epm pack --install $PKGNAME $PKGURL "$VERSION"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PREINSTALL_PACKAGES="glib2 libfontconfig1 libfreetype libgdk-pixbuf libGL libgtk+2 libnspr libnss libpango libX11 libXcursor libXrender"
. $(dirname $0)/common.sh
subst '1iAutoProv:no' $SPEC
subst "s|^License: unknown$|License: Proprietary|" $SPEC
subst "s|^Summary:.*|Summary: Adobe Flash Player Standalone|" $SPEC
# from https://logos.fandom.com/wiki/Adobe_Flash_Player#2015%E2%80%932020
# https://static.wikia.nocookie.net/logopedia/images/7/7c/Flashplayer_app_RGB.svg/revision/latest/scale-to-width-down/200?cb=20190707103515
install_file "https://static.wikia.nocookie.net/logopedia/images/7/7c/Flashplayer_app_RGB.svg/revision/latest/scale-to-width-down/200?cb=20190707103515" /usr/share/icons/hicolor/scalable/apps/$PRODUCT.svg
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Adobe Flash Player Standalone
Comment=Player for using content created on the Adobe Flash platform
Icon=$PRODUCT
Exec=$PRODUCT %u
Categories=Audio;AudioVideo;Graphics;GTK;Player;Video;Viewer;
MimeType=application/x-shockwave-flash;
Terminal=false
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment