flashplayer.sh 1.33 KB
Newer Older
1 2 3 4 5 6 7 8
#!/bin/sh

TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"

. $(dirname $0)/common.sh

9
PKGNAME=$PRODUCT-$VERSION
10 11 12 13 14 15 16 17 18

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/

19 20 21 22 23 24 25 26 27 28 29 30
cat <<EOF | create_file /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
31

32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
# 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

erc pack $PKGNAME.tar usr

cat <<EOF >$PKGNAME.tar.eepm.yaml
name: $PRODUCT
group: Networking/WWW
license: Multiple, see https://brave.com/
url: https://www.adobe.com/support/flashplayer/downloads.html
summary: Adobe Flash Player Standalone
description: Adobe Flash Player Standalone.
EOF


return_tar $PKGNAME.tar