Commit 9668aec8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play vkteams: implement via epm pack

parent 9cfd5fd7
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
if echo "$TAR" | grep -q "vkteams.tar.xz" ; then
erc "$TAR" || fatal
else
fatal "We support only vkteams.tar.xz"
fi
mkdir opt
mv vkteams.tar opt/$PRODUCT || fatal
PKGNAME=$PRODUCT-$VERSION.tar
erc pack $PKGNAME opt/$PRODUCT
return_tar $PKGNAME
......@@ -10,8 +10,5 @@ DESCRIPTION="VK Teams for Linux from the official site"
VERSION="1.0"
PKGURL="https://vkteams-www.hb.bizmrg.com/linux/x64/vkteams.tar.xz"
PKGFILE="/tmp/$PKGNAME-$VERSION.tar.xz"
epm tool eget -O $PKGFILE $PKGURL || exit
epm install --repack "$PKGFILE" || exit
epm pack --install $PKGNAME "$PKGURL" "$VERSION"
......@@ -14,12 +14,6 @@ subst "s|^Group:.*|Group: Networking/Instant messaging|" $SPEC
subst "s|^URL:.*|URL: https://teams.vk.com/|" $SPEC
subst "s|^Summary:.*|Summary: VK Teams|" $SPEC
# move package to /opt
mkdir -p $BUILDROOT$PRODUCTDIR
mv $BUILDROOT/* $BUILDROOT$PRODUCTDIR
subst "s|\"/|\"$PRODUCTDIR/|" $SPEC
pack_dir $PRODUCTDIR
add_bin_exec_command $PRODUCT
# Hack against https://bugzilla.altlinux.org/43779
# Create non writeable local .desktop file
......
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