Commit cba62f35 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: switch to use common functions

parent 022bfc13
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=assistant
DESCRIPTION="Assistant (Ассистент) from the official site"
# Assistant reclaim their rpm package supports ALT
repack="--scripts"
if [ "$1" = "--remove" ] ; then
epm remove $repack $PKGNAME
exit
fi
[ "$1" != "--run" ] && echo "Assistant (Ассистент) from the official site" && exit
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=atom-beta
DESCRIPTION="The hackable text editor from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
[ "$1" != "--run" ] && echo "The hackable text editor from the official site" && exit
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=brave-browser
DESCRIPTION="Brave browser from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Brave browser from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=chrome-remote-desktop
if [ "$1" = "--remove" ] ; then
epm remove chrome-remote-desktop
exit
fi
[ "$1" != "--run" ] && exit # echo " Remote desktop support for google-chrome & chromium" && exit
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
#arch=$($DISTRVENDOR --distro-arch)
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=google-chrome-stable
DESCRIPTION="The popular and trusted web browser by Google (Stable Channel) from the official site"
if [ "$1" = "--remove" ] ; then
epm remove google-chrome-stable
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "The popular and trusted web browser by Google (Stable Channel) from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=chromium-gost-stable
DESCRIPTION="Chromium with GOST support from the official site"
PKGNAME=chromium-gost
if [ "$1" = "--remove" ] ; then
# $PKGNAME-stable really
epm remove $(epmqp $PKGNAME)
exit
fi
[ "$1" != "--run" ] && echo "Chromium with GOST support from the official site" && exit
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
if epm installed chromium-gost ; then
fatal "Package $PKGNAME is already installed from ALT repository."
fatal "Package chromium-gost is already installed from ALT repository."
fi
#arch=$($DISTRVENDOR --distro-arch)
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=code
DESCRIPTION="Visual Studio Code from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Visual Studio Code from the official site" && exit
arch="$($DISTRVENDOR -a)"
case "$arch" in
......
......@@ -17,6 +17,4 @@ if [ "$1" = "--installed" ] ; then
fi
if [ -n "$DESCRIPTION" ] ; then
[ "$1" != "--run" ] && echo "$DESCRIPTION" && exit
fi
[ "$1" != "--run" ] && echo "$DESCRIPTION" && exit
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=discord
DESCRIPTION="Discord from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Discord from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=Autodesk_EAGLE
DESCRIPTION="EAGLE (EDA software) from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "EAGLE (EDA software) from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=microsoft-edge-dev
DESCRIPTION="Microsoft Edge browser (dev) from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Microsoft Edge browser (dev) from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=onlyoffice-desktopeditors
DESCRIPTION="ONLYOFFICE for Linux from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "ONLYOFFICE for Linux from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=r7-office
DESCRIPTION="R7 Office for Linux from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "R7 Office for Linux from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=sferum
DESCRIPTION="Sferum for Linux from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Sferum for Linux from the official site" && exit
arch=$($DISTRVENDOR --distro-arch)
case $arch in
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=skypeforlinux
DESCRIPTION="Skype for Linux - Stable/Release Version from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Skype for Linux - Stable/Release Version from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=spotify-client
DESCRIPTION="Spotify client for Linux from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Spotify client for Linux from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=sputnik-browser-stable
DESCRIPTION="Sputnik browser from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Sputnik browser from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported by vendor" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=steam-launcher
DESCRIPTION=''
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
[ "$1" != "--run" ] && exit #echo "Steam for Linux from the official site" && exit
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=SweetHome3D
DESCRIPTION=''
. $(dirname $0)/common.sh
arch="$($DISTRVENDOR -a)"
case "$arch" in
......@@ -21,13 +18,6 @@ case "$arch" in
;;
esac
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
[ "$1" != "--run" ] && exit #echo "Sweet Home 3D from the official site" && exit
# TODO: get url from https://sourceforge.net/projects/sweethome3d/best_release.json (is it client system dependend??)
# see get_github_urls in eget
VERSION=6.6
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=tamtam-app
DESCRIPTION="TamTam messenger from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "TamTam messenger from the official site" && exit
arch="$($DISTRVENDOR --debian-arch)"
case "$arch" in
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=teams
DESCRIPTION="Microsoft Teams for Linux from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Microsoft Teams for Linux from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME="teamviewer"
DESCRIPTION="Teamviewer from the official site"
. $(dirname $0)/common.sh
arch="$($DISTRVENDOR -a)"
case "$arch" in
......@@ -21,12 +18,6 @@ case "$arch" in
;;
esac
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
[ "$1" != "--run" ] && echo "Teamviewer from the official site" && exit
# See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=teamviewer
......@@ -36,8 +27,9 @@ repack=''
# epm uses eget to download * names
epm $repack install "https://download.teamviewer.com/download/linux/$(epm print constructname $PKGNAME)" || exit
echo
echo "Note: run
cat <<EOF
Note: run
# serv teamviewerd on
to enable needed teamviewer system service (daemon)
"
EOF
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=Telegram
DESCRIPTION="Telegram client from the official site"
if [ "$1" = "--remove" ] ; then
# $PKGNAME-stable really
......@@ -15,11 +9,12 @@ if [ "$1" = "--remove" ] ; then
exit
fi
[ "$1" != "--run" ] && echo "Telegram client from the official site" && exit
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
PKGURL=$($EGET --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.*.tar.xz")
PKGURL=$($EGET --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.*.tar.xz") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
PKGFILE=$(echo /tmp/$(basename $PKGURL) | sed -e "s|/tsetup|/$PKGNAME|")
$EGET -O $PKGFILE $PKGURL || exit
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=viber
DESCRIPTION="Viber for Linux from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Viber for Linux from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=vivaldi-stable
DESCRIPTION="Vivaldi browser from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Vivaldi browser from the official site" && exit
arch="$($DISTRVENDOR --debian-arch)"
case "$arch" in
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=XnViewMP
DESCRIPTION="XnView MP: Image management from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "XnView MP: Image management from the official site" && exit
repack='--repack'
arch=$($DISTRVENDOR --distro-arch)
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=yandex-disk
DESCRIPTION="Yandex Disk from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Yandex Disk from the official site" && exit
# http://repo.yandex.ru/yandex-disk/yandex-disk_latest_amd64.deb
# http://repo.yandex.ru/yandex-disk/yandex-disk-latest.x86_64.rpm
......
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=zoom
DESCRIPTION="Zoom client from the official site"
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
. $(dirname $0)/common.sh
[ "$1" != "--run" ] && echo "Zoom client from the official site" && exit
repack='--repack'
arch=$($DISTRVENDOR --distro-arch)
......
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