Commit fb964015 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play.d: add SUPPORTEDARCHES for common checking supported arches

parent 4355274f
#!/bin/sh
PKGNAME=anydesk
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION="AnyDesk from the official site"
. $(dirname $0)/common.sh
......
#!/bin/sh
PKGNAME=assistant
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Assistant (Ассистент) from the official site"
# Assistant reclaim their rpm package supports ALT
......
#!/bin/sh
PKGNAME=atom-beta
SUPPORTEDARCHES="x86_64"
DESCRIPTION="The hackable text editor from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
#arch=$($DISTRVENDOR --distro-arch)
#pkgtype=$($DISTRVENDOR -p)
arch=amd64
......
......@@ -3,6 +3,7 @@
DESCRIPTION="Brave browser from the official site"
PKGNAME=brave-browser
SUPPORTEDARCHES="x86_64"
if [ "$2" = "beta" ] || epm installed $PKGNAME-beta ; then
PKGNAME=$PKGNAME-beta
fi
......@@ -13,7 +14,6 @@ fi
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
arch=x86_64
pkgtype=rpm
......
#!/bin/sh
PKGNAME=chrome-remote-desktop
SUPPORTEDARCHES="x86_64"
DESCRIPTION='' # 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
echo "It is not finished yet. Just skipping."
exit 0
......
#!/bin/sh
PKGNAME=google-chrome-stable
SUPPORTEDARCHES="x86_64"
DESCRIPTION="The popular and trusted web browser by Google (Stable Channel) from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
#arch=$($DISTRVENDOR --distro-arch)
#pkgtype=$($DISTRVENDOR -p)
repack=''
......
......@@ -2,12 +2,11 @@
# filename does not contain -stable, but package name with -stable
PKGNAME=chromium-gost-stable
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Chromium with GOST support from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
if epm installed chromium-gost ; then
fatal "Package chromium-gost is already installed from ALT repository."
fi
......
#!/bin/sh
PKGNAME=code
SUPPORTEDARCHES="x86_64 armhf aarch64"
DESCRIPTION="Visual Studio Code from the official site"
TIPS="Run epm play code <version> to install specific version."
......
......@@ -52,3 +52,16 @@ case "$1" in
;;
esac
check_supported_arch()
{
# skip checking if no arches
[ -n "$1" ] || return 0
for i in $* ; do
[ "$(epm print info -a)" = "$i" ] && return 0
done
return 1
}
check_supported_arch $SUPPORTEDARCHES || fatal "Only $SUPPORTEDARCHES is supported"
#!/bin/sh
PKGNAME=discord
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Discord from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
# curl can't get filename: https://github.com/curl/curl/issues/8461
epm assure wget
......
#!/bin/sh
PKGNAME=draw.io
SUPPORTEDARCHES="x86_64"
DESCRIPTION="diagrams.net desktop"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
arch=amd64
pkgtype=deb
......
#!/bin/sh
PKGNAME=Autodesk_EAGLE
SUPPORTEDARCHES="x86_64"
DESCRIPTION="EAGLE (EDA software) from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
VERSION=9.6.2
IPFSHASH=Qmd38jJnTnUMUeJuKSDBGesqXF3SxEahUVZc6NUPyMKgj1
PKGURL="https://trial2.autodesk.com/NET17SWDLD/2017/EGLPRM/ESD/Autodesk_EAGLE_${VERSION}_English_Linux_64bit.tar.gz"
......
#!/bin/sh
PKGNAME=microsoft-edge-dev
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Microsoft Edge browser (dev) from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
# epm uses eget to download * names
epm install "https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/microsoft-edge-*_amd64.deb"
#!/bin/sh
PKGNAME=geogebra-classic
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION="Geogebra 6 from the official site"
. $(dirname $0)/common.sh
......
#!/bin/sh
PKGNAME=ktalk2022
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Контур.Толк (ktalk) from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
URL="https://app.ktalk.ru/system/dist/download/linux"
# curl can't get filename: https://github.com/curl/curl/issues/8461
......
#!/bin/sh
PKGNAME=mssql-server
SUPPORTEDARCHES="x86_64"
DESCRIPTION="MS SQL Server 2019 from the official site"
DEBREPO="deb http://ftp.ru.debian.org/debian/ stretch main"
......@@ -15,8 +16,6 @@ fi
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
serv mssql-server stop
case "$($DISTRVENDOR -d)" in
......
#!/bin/sh
PKGNAME=mssql-tools
SUPPORTEDARCHES="x86_64"
DESCRIPTION="MS SQL Server sqlcmd and bcp from the official site"
if [ "$1" = "--remove" ] ; then
......@@ -10,8 +11,6 @@ fi
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
case "$($DISTRVENDOR -d)" in
"AstraLinux")
epm install unixodbc
......
#!/bin/sh
PKGNAME=obsidian
SUPPORTEDARCHES="x86_64"
DESCRIPTION='Obsidian from the official site'
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
arch=amd64
pkgtype=deb
......
#!/bin/sh
PKGNAME=onlyoffice-desktopeditors
SUPPORTEDARCHES="x86_64"
DESCRIPTION="ONLYOFFICE for Linux from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
#arch=$($DISTRVENDOR --distro-arch)
arch=amd64
#pkgtype=$($DISTRVENDOR -p)
......
#!/bin/sh
PKGNAME=r7-office
SUPPORTEDARCHES="x86_64"
DESCRIPTION="R7 Office for Linux from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
#arch=$($DISTRVENDOR --distro-arch)
arch=amd64
#pkgtype=$($DISTRVENDOR -p)
......
#!/bin/sh
PKGNAME=sferum
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION="Sferum for Linux from the official site"
. $(dirname $0)/common.sh
......
#!/bin/sh
PKGNAME=skypeforlinux
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Skype for Linux - Stable/Release Version from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
#arch=$($DISTRVENDOR --distro-arch)
#pkgtype=$($DISTRVENDOR -p)
pkgtype=deb
......
#!/bin/sh
PKGNAME=snap4arduino
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION="Snap4Arduino binds Snap! and Arduino together"
if [ "$1" = "--remove" ] ; then
......
#!/bin/sh
PKGNAME=spotify-client
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Spotify client for Linux from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
# epm uses eget to download * names
epm install "https://repository-origin.spotify.com/pool/non-free/s/spotify-client/$(epm print constructname $PKGNAME "*" amd64 deb)"
#!/bin/sh
PKGNAME=sputnik-browser-stable
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Sputnik browser from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported by vendor" && exit 1
url_by_id_content()
{
local id_content="$1"
......
#!/bin/sh
PKGNAME=steam-launcher
SUPPORTEDARCHES="x86_64"
DESCRIPTION=''
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
epm install "https://cdn.akamai.steamstatic.com/client/installer/steam.deb"
#!/bin/sh
PKGNAME=sublime-text
SUPPORTEDARCHES="x86_64 aarch64"
DESCRIPTION='Sublime Text 4 from the official site'
. $(dirname $0)/common.sh
......
#!/bin/sh
PKGNAME=SweetHome3D
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION=''
. $(dirname $0)/common.sh
......
#!/bin/sh
PKGNAME=tamtam-app
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION="TamTam messenger from the official site"
. $(dirname $0)/common.sh
......
#!/bin/sh
PKGNAME=teams
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Microsoft Teams for Linux from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
# rpm and deb contains the same binaries
#https://packages.microsoft.com/yumrepos/ms-teams/teams-1.3.00.25560-1.x86_64.rpm
......
#!/bin/sh
PKGNAME="teamviewer"
SUPPORTEDARCHES="x86_64 armhf"
DESCRIPTION="Teamviewer from the official site"
. $(dirname $0)/common.sh
......
#!/bin/sh
PKGNAME=Telegram
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Telegram client from the official site"
if [ "$1" = "--remove" ] ; then
......@@ -12,8 +13,6 @@ fi
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
PKGURL=$(epm tool 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|")
......
#!/bin/sh
PKGNAME=viber
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Viber for Linux from the official site"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
# the same binaries in deb and rpm
PKG="https://download.cdn.viber.com/cdn/desktop/Linux/viber.deb"
......
......@@ -11,12 +11,10 @@ fi
BASEPKGNAME=vivaldi-$BRANCH
PKGNAME=vivaldi-$BRANCH-codecs-ffmpeg-extra
SUPPORTEDARCHES="x86_64"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
VIVALDI_VERSION=$(epm print version for package vivaldi-stable) || fatal
epm install --skip-installed tar binutils || exit
......
......@@ -7,6 +7,7 @@ if [ "$2" = "snapshot" ] || epm installed vivaldi-snapshot ; then
BRANCH=snapshot
fi
PKGNAME=vivaldi-$BRANCH
SUPPORTEDARCHES="x86_64 x86 aarch64 armhf"
. $(dirname $0)/common.sh
......
#!/bin/sh
PKGNAME=xnview
SUPPORTEDARCHES="x86_64"
DESCRIPTION="XnView MP: Image management from the official site"
. $(dirname $0)/common.sh
repack='--repack'
arch=$($DISTRVENDOR --distro-arch)
case $arch in
x86_64|amd64)
;;
*)
fatal "Unsupported arch $arch for $($DISTRVENDOR -d)"
esac
epm install https://download.xnview.com/XnViewMP-linux-x64.deb
......@@ -11,12 +11,10 @@ fi
BASEPKGNAME=yandex-browser-$BRANCH
PKGNAME=yandex-browser-$BRANCH-codecs-ffmpeg-extra
SUPPORTEDARCHES="x86_64"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
# used in update-ffmpeg
epm install --skip-installed jq tar binutils || exit
......
......@@ -11,11 +11,10 @@ if [ "$2" = "beta" ] || epm installed yandex-browser-beta ; then
fi
PKGNAME=yandex-browser-$BRANCH
SUPPORTEDARCHES="x86_64"
. $(dirname $0)/common.sh
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
# See also https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yandex-browser-beta
# epm uses eget to download * names
......
#!/bin/sh
PKGNAME=yandex-disk
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION="Yandex Disk from the official site"
. $(dirname $0)/common.sh
......
#!/bin/sh
PKGNAME=zoom
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION="Zoom client from the official site"
. $(dirname $0)/common.sh
......
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