Commit 805b80c1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: cleanup rudesktop download and repacking

parent e5067dcb
......@@ -6,26 +6,28 @@ VERSION="$2"
DESCRIPTION="RuDesktop for Linux from the official site"
URL="https://rudesktop.ru/"
# change installed package name
pkgname="$PKGNAME"
repack=''
# FIXME: uses global epm
# change package name (like on the site)
case "$(epm print info -s)" in
astra)
PKGNAME=rudesktop-astra
;;
alt)
pkgname=rudesktop-alt
repack='--repack'
;;
osnova)
PKGNAME=rudesktop-astra
pkgname=rudesktop-osnova
;;
esac
. $(dirname $0)/common.sh
warn_version_is_not_supported
repack=''
# change package name for downloading
case "$(epm print info -s)" in
alt)
PKGNAME=rudesktop-alt
repack='--repack'
;;
esac
case "$(epm print info -p)" in
rpm)
pkgtype=rpm
......@@ -36,4 +38,13 @@ case "$(epm print info -p)" in
esac
PKGURL="https://rudesktop.ru/download/$PKGNAME-amd64.$pkgtype"
epm install $repack $PKGURL
epm install $repack $PKGURL || exit
echo
echo "Note: run
# serv $PKGNAME on
to enable and start $PKGNAME system service
Use
/usr/bin/rudesktop --rendezvous DOMAIN
to set the domain if needed.
"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
ORIGINPACKAGE="$4"
. $(dirname $0)/common.sh
# follow original requires
reqs="$(epm requires "$ORIGINPACKAGE")"
[ -n "$reqs" ] && add_requires $reqs
# ??
# echo "root ALL=(ALL) NOPASSWD:SETENV:/usr/bin/rudesktop" > /etc/sudoers.d/rudesktop
install_file usr/share/rudesktop-client/files/rudesktop.service /etc/systemd/system/rudesktop.service
install_file usr/share/rudesktop-client/files/rudesktop.desktop /usr/share/applications/rudesktop.desktop
#xdg-mime default rudesktop.desktop x-scheme-handler/rudesktop || true
subst "s|^Summary:.*|Summary: A remote control software.|" $SPEC
\ No newline at end of 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