Commit 1a6f1a2c authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play: add winbox (eterbug #17528)

parent dc84c4d2
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
PKGNAME=$PRODUCT-$VERSION.tar
mkdir -p opt/eepm-wine/$PRODUCT/
cat <<EOF >opt/eepm-wine/$PRODUCT/run.sh
#!/bin/sh
RUNFILE="/opt/eepm-wine/winbox/winbox64.exe"
exec wine "\$RUNFILE" "\$@"
EOF
chmod 755 opt/eepm-wine/$PRODUCT/run.sh
cp $TAR opt/eepm-wine/$PRODUCT/
erc pack $PKGNAME opt/eepm-wine
return_tar $PKGNAME
#!/bin/sh
PKGNAME=winbox
SUPPORTEDARCHES="x86_64"
VERSION="3.40"
DESCRIPTION='Winbox from the official site'
URL="https://mikrotik.com/download"
. $(dirname $0)/common.sh
warn_version_is_not_supported
PKGURL="https://mt.lv/winbox64"
install_pack_pkgurl $VERSION
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=winbox
PRODUCTDIR=/opt/eepm-wine/$PRODUCT
. $(dirname $0)/common.sh
add_requires '/usr/bin/wine'
add_bin_link_command $PRODUCT $PRODUCTDIR/run.sh
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Name=WinBox
Exec=$PRODUCT %F
Type=Application
StartupNotify=true
Icon=$PRODUCT
StartupWMClass=winbox64.exe
Categories=Wine;Network;
EOF
# copied from unpacked exe file: winbox64.exe
i=48
install_file ipfs://Qmdkgx2mstbxHtvFuooaUTrRL1tnz5XWh5seiyXQGkTmCW /usr/share/icons/hicolor/${i}x${i}/apps/$PRODUCT.png
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