Commit 0744914a authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm pack flashplayer: move all code from repack rule

parent 1d95891d
......@@ -6,7 +6,7 @@ VERSION="$3"
. $(dirname $0)/common.sh
PKGNAME=$PRODUCT-$VERSION.tar
PKGNAME=$PRODUCT-$VERSION
erc unpack $TAR
cd * || fatal
......@@ -16,6 +16,33 @@ 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
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
return_tar $PKGNAME
# 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
#!/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
set_autoreq 'yes'
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