Commit 1ec54e88 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add commfort-client (wine)

parent 20c9e990
#!/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
INSTALLER="/opt/eepm-wine/$PRODUCT/$(basename $TAR)"
# TODO: duplicate menu entries, drop original entries
# FIXME: use could select other path
RUNFILE='C:\Program Files (x86)\CommFort\CommFort.exe'
URUNFILE="\$(winepath -u "\$RUNFILE")"
if [ ! -f "\$URUNFILE" ] ; then
exec wine "\$INSTALLER"
fi
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=commfort-client
SUPPORTEDARCHES="x86_64 x86"
# just a concept
DESCRIPTION='' #"CommFort WINE Edition from the official site"
URL="https://www.commfort.com/ru/article-commfort-linux.shtml"
. $(dirname $0)/common.sh
VERSION="5.96d"
# TODO: check: https://www.commfort.com/download/commfort_client.msi
INSTALLURL="https://www.commfort.com/download/commfort_client_wine.exe"
epm pack --install $PKGNAME $INSTALLURL $VERSION
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=commfort-client
PRODUCTDIR=/opt/eepm-wine/$PRODUCT
. $(dirname $0)/common.sh
subst '1iAutoReq:no' $SPEC
subst '1iAutoProv:no' $SPEC
add_requires '/usr/bin/wine'
add_bin_link_command $PRODUCT $PRODUCTDIR/run.sh
mkdir -p usr/share/applications
cat <<EOF >usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Name=CommFort
Exec=$PRODUCT %F
Type=Application
StartupNotify=true
Icon=$PRODUCT
StartupWMClass=commfort.exe
Categories=Wine;Chat;Network;InstantMessaging;
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
# copied from ~/.local/share/icons/hicolor/256x256/apps/2887_CommFort.0.png
i=256
install_file ipfs://QmaiWKRyPPSV4QeurB2sZabAv4RYuC5xsYqkBgPERNjZjJ /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