Commit c0770900 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: rewrite to support set version where possible

parent 82b97192
......@@ -2,15 +2,12 @@
PKGNAME=64Gram
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="64Gram (unofficial Telegram Desktop)"
TIPS="Run 'epm play 64gram=<version>' to install the version of the 64Gram Telegram client."
VERSION="*[0-9]"
[ -n "$2" ] && [ "$2" != "beta" ] && VERSION="$2"
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest https://github.com/TDesktop-x64/tdesktop/releases "${PKGNAME}_${VERSION}_linux.zip") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
......
......@@ -3,6 +3,7 @@
PKGNAME=aimp
SUPPORTEDARCHES="x86_64"
DESCRIPTION="AIMP (Wine based audio player) from the official site"
URL="https://www.aimp.ru/?do=download&os=linux"
. $(dirname $0)/common.sh
......
......@@ -2,10 +2,12 @@
PKGNAME=anydesk
SUPPORTEDARCHES="x86_64 x86"
VERSION="$2"
DESCRIPTION="AnyDesk from the official site"
. $(dirname $0)/common.sh
[ -n "$VERSION" ] || VERSION="[6-9].[1-9]*"
. $(dirname $0)/common.sh
arch=$(epm print info --distro-arch)
case $arch in
......@@ -19,10 +21,9 @@ case $arch in
fatal "Unsupported arch $arch for $(epm print info -d)"
esac
# FIXME: alt, not deb!
# we have workaround for their postinstall script, so always repack rpm package
repack=''
[ "$(epm print info -p)" = "deb" ] || repack='--repack'
[ "$(epm print info -s)" = "alt" ] && repack='--repack'
# current links:
# https://download.anydesk.com/rpm/anydesk_6.0.1-1_x86_64.rpm
......@@ -32,15 +33,15 @@ repack=''
# general msk
#PKGMASK="$(epm print info -p)/$(epm print constructname $PKGNAME "*" $arch '' '_')"
# TODO: hack with version, there are too many files
PKGMASK="$(epm print constructname $PKGNAME "[6-9].[1-9]*" $arch '' '_')"
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch '' '_')"
# we miss obsoleted libpangox on ALT, so use RHEL8 build
# lib.req: WARNING: /usr/bin/anydesk: library libpangox-1.0.so.0 not found
#[ "$(epm print info -s)" = "alt" ] && PKGMASK="os-specific/rhel8/$(epm print constructname $PKGNAME "*" $arch)"
PKG="$(epm tool eget --list --latest https://download.anydesk.com/linux/ $PKGMASK)" || fatal "Can't get package URL"
PKGURL="$(epm tool eget --list --latest https://download.anydesk.com/linux/ $PKGMASK)" || fatal "Can't get package URL"
epm $repack install "$PKG" || exit
epm $repack install "$PKGURL" || exit
echo
echo "Note: run
......
......@@ -2,17 +2,10 @@
PKGNAME=atom
SUPPORTEDARCHES="x86_64"
VERSION="$2"
PRODUCTALT="'' beta"
DESCRIPTION="The hackable text editor from the official site"
for i in $PRODUCTALT ; do
[ "$i" = "''" ] && continue
if [ "$2" = "$i" ] || epm installed $PKGNAME-$i ; then
PKGNAME=$PKGNAME-$i
break
fi
done
. $(dirname $0)/common.sh
#arch=$(epm print info --distro-arch)
......@@ -25,6 +18,11 @@ if [ "$PKGNAME" = "atom" ] ; then
notbeta='-v'
fi
PKG=$(epm tool eget --list https://github.com/atom/atom/releases/ "atom-$arch.$pkgtype" | grep $notbeta -- "-beta" | head -n1) || fatal "Can't get package URL"
if [ "$VERSION" != "*" ] ; then
[ "$PKGNAME" = "atom-beta" ] && VERSION="$VERSION-beta0"
PKGURL="https://github.com/atom/atom/releases/download/v$VERSION/atom-$arch.$pkgtype"
else
PKGURL=$(epm tool eget --list https://github.com/atom/atom/releases/ "atom-$arch.$pkgtype" | grep $notbeta -- "-beta" | head -n1) || fatal "Can't get package URL"
fi
epm install "$PKG"
epm install "$PKGURL"
#!/bin/sh
DESCRIPTION="Brave browser from the official site"
PKGNAME=brave-browser
BASEPKGNAME=brave-browser
SUPPORTEDARCHES="x86_64"
PRODUCTALT="'' beta nightly dev"
for i in $PRODUCTALT ; do
[ "$i" = "''" ] && continue
if [ "$2" = "$i" ] || epm installed $PKGNAME-$i ; then
PKGNAME=$PKGNAME-$i
break
fi
done
VERSION="$2"
DESCRIPTION="Brave browser from the official site"
. $(dirname $0)/common.sh
arch=x86_64
pkgtype=rpm
repack=''
# we have workaround for their postinstall script, so always repack rpm package
[ "$(epm print info -p)" = "deb" ] || repack='--repack'
PKG=$(epm tool eget --list --latest https://github.com/brave/brave-browser/releases "$PKGNAME-[[:digit:]]*.$arch.$pkgtype")
PKG=$(epm tool eget --list --latest https://github.com/brave/brave-browser/releases "$PKGNAME-$VERSION.$arch.$pkgtype")
if [ -z "$PKG" ] ; then
# force use beta
......@@ -32,11 +22,11 @@ if [ -z "$PKG" ] ; then
TOREMOVEPKG=$PKGNAME
# if there is no stable release, switch to beta
PKGNAME=$BASEPKGNAME-beta
PKG=$(epm tool eget --list --latest https://github.com/brave/brave-browser/releases "$PKGNAME-[[:digit:]]*.$arch.$pkgtype")
PKG=$(epm tool eget --list --latest https://github.com/brave/brave-browser/releases "$PKGNAME-$VERSION.$arch.$pkgtype")
[ -n "$PKG" ] || fatal "Can't get package URL"
echo "Force switching from $TOREMOVEPKG to $PKGNAME ... "
epm remove $TOREMOVEPKG
epm installed $TOREMOVEPKG && epm remove $TOREMOVEPKG
else
fatal "Can't get package URL"
fi
......
......@@ -4,6 +4,7 @@
PKGNAME=chromium-gost-stable
REPOPKGNAME=chromium-gost
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Chromium with GOST support from the official site"
. $(dirname $0)/common.sh
......@@ -13,6 +14,6 @@ DESCRIPTION="Chromium with GOST support from the official site"
arch=amd64
pkgtype=deb
PKG=$(epm tool eget --list --latest https://github.com/deemru/chromium-gost/releases "chromium-gost-*linux-$arch.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(epm tool eget --list --latest https://github.com/deemru/chromium-gost/releases "chromium-gost-$VERSION-linux-$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKG"
epm install "$PKGURL"
......@@ -2,11 +2,16 @@
PKGNAME=ClipGrab
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="ClibGrab - A friendly downloader for YouTube and other sites from the official site"
URL="https://clipgrab.org/"
. $(dirname $0)/common.sh
PKGURL="$(eget --list --latest https://clipgrab.org/ "ClipGrab-*-x86_64.AppImage")"
if [ "$VERSION" != "*" ] ; then
PKGURL="https://download.clipgrab.org/ClipGrab-$VERSION-x86_64.AppImage"
else
PKGURL="$(eget --list --latest https://clipgrab.org/ "ClipGrab-*-x86_64.AppImage")"
fi
epm install $PKGURL
......@@ -2,13 +2,12 @@
PKGNAME=code
SUPPORTEDARCHES="x86_64 armhf aarch64"
VERSION="$2"
DESCRIPTION="Visual Studio Code from the official site"
TIPS="Run epm play code=<version> to install specific version."
. $(dirname $0)/common.sh
VERSION="$2"
arch="$(epm print info -a)"
case "$arch" in
x86_64)
......@@ -30,7 +29,7 @@ pkgtype="$(epm print info -p)"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
if [ -n "$VERSION" ] ; then
if [ "$VERSION" != "*" ] ; then
URL="https://update.code.visualstudio.com/$VERSION/linux-$pkgtype-$arch/stable"
else
URL="https://code.visualstudio.com/sha/download?build=stable&os=linux-$pkgtype-$arch"
......
#!/bin/sh
PKGNAME=codium
SUPPORTEDARCHES="x86_64 armhf"
SUPPORTEDARCHES="x86_64 aarch64 armhf"
VERSION="$2"
DESCRIPTION="Codium from the official site"
. $(dirname $0)/common.sh
VERSION="$2"
arch="$(epm print info -a)"
pkgtype="$(epm print info -p)"
case "$pkgtype" in
rpm|deb)
;;
*)
pkgtype="deb"
;;
esac
case "$arch-$pkgtype" in
x86_64-deb)
arch=amd64
......@@ -23,10 +30,10 @@ case "$arch-$pkgtype" in
esac
PKG=$(epm tool eget --list --latest https://github.com/VSCodium/vscodium/releases "$PKGNAME-*$arch.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(epm tool eget --list --latest https://github.com/VSCodium/vscodium/releases $(epm print constructname $PKGNAME "$VERSION*" $arch $pkgtype)) || fatal "Can't get package URL"
# we have workaround for their postinstall script, so always repack rpm package
[ "$pkgtype" = "deb" ] || repack='--repack'
epm install $repack "$PKG" || exit
epm install $repack "$PKGURL" || exit
......@@ -66,6 +66,45 @@ get_pkgvendor()
epm print field Vendor for package $1
}
check_alternative_pkgname()
{
[ -n "$BASEPKGNAME" ] || BASEPKGNAME="$PKGNAME"
local i
for i in $PRODUCTALT ; do
if [ "$i" = "''" ] ; then
PKGNAME=$BASEPKGNAME
continue
fi
if [ "$VERSION" = "$i" ] ; then
PKGNAME=$BASEPKGNAME-$i
VERSION=""
return
fi
done
# when VERSION is not in PRODUCTALT
for i in $PRODUCTALT ; do
[ "$i" = "''" ] && continue
if epm installed $BASEPKGNAME-$i ; then
PKGNAME=$BASEPKGNAME-$i
break
fi
done
}
# support direct run the script
if [ -x "../bin/epm" ] ; then
export PATH="$(realpath ../bin):$PATH"
fi
if [ -z "$SUDO" ] && [ "$UID" != "0" ] ; then
SUDO="sudo"
fi
# set PKGNAME to $BASEPKGNAME-$VERSION if $VERSION is found in PRODUCTALT
[ -n "$PRODUCTALT" ] && check_alternative_pkgname
case "$1" in
"--remove")
epm remove $PKGNAME
......@@ -146,15 +185,6 @@ esac
# --update/--run
# support direct run the script
if [ -x "../bin/epm" ] ; then
export PATH="$(realpath ../bin):$PATH"
fi
if [ -z "$SUDO" ] && [ "$UID" != "0" ] ; then
SUDO="sudo"
fi
is_supported_arch "$(epm print info -a)" || fatal "Only '$SUPPORTEDARCHES' architectures is supported"
. $(dirname $0)/common-outformat.sh
......@@ -209,10 +239,9 @@ is_repacked_package()
return 0
}
# skip install if there is package installed not via epm play
is_repacked_package $REPOPKGNAME || exit 0
# set version when update
if [ -z "$VERSION" ] ; then
[ -z "$2" ] || VERSION="$2"
fi
# default version value (can be overrided with arg $2 or by update)
[ -n "$VERSION" ] || VERSION="*"
#!/bin/sh
DESCRIPTION="CUDA-Z from the official site"
PKGNAME=cuda-z
VERSION="$2"
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION="CUDA-Z from the official site"
. $(dirname $0)/common.sh
arch="$(epm print info -a)"
case "$arch" in
x86_64)
file="CUDA-Z-*-64bit.run/download"
file="CUDA-Z-$VERSION-64bit.run/download"
;;
x86)
file="CUDA-Z-*-32bit.run/download"
file="CUDA-Z-$VERSION-32bit.run/download"
;;
*)
fatal "$arch arch is not supported"
;;
esac
pkgtype="$(epm print info -p)"
#pkgtype="$(epm print info -p)"
PKGURL="$(eget --list --latest https://cuda-z.sourceforge.net/ "$file" )"
epm pack --install $PKGNAME "$PKGURL"
......@@ -2,11 +2,16 @@
PKGNAME=discord
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Discord from the official site"
. $(dirname $0)/common.sh
epm assure wget || fatal "Can't install wget, but curl can't get filename: https://github.com/curl/curl/issues/8461"
epm install "https://discord.com/api/download?platform=linux&format=deb"
if [ "$VERSION" != "*" ] ; then
PKGURL="https://dl.discordapp.net/apps/linux/$VERSION/discord-$VERSION.deb"
else
epm assure wget || fatal "Can't install wget, but curl can't get filename: https://github.com/curl/curl/issues/8461"
PKGURL="https://discord.com/api/download?platform=linux&format=deb"
fi
epm install "$PKGURL"
......@@ -2,18 +2,18 @@
PKGNAME=DJV2
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="DJV2 - Professional media review software for VFX, animation, and film production"
. $(dirname $0)/common.sh
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
mask="DJV2-*.x86_64.rpm"
mask="DJV2-${VERSION}.x86_64.rpm"
;;
deb)
mask="DJV2_*_amd64.deb"
mask="DJV2_${VERSION}_amd64.deb"
;;
esac
......
......@@ -2,14 +2,14 @@
PKGNAME=draw.io
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="diagrams.net desktop"
. $(dirname $0)/common.sh
arch=amd64
pkgtype=deb
PKG=$(epm tool eget --list --latest https://github.com/jgraph/drawio-desktop/releases "drawio-$arch-[[:digit:]]*.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(epm tool eget --list --latest https://github.com/jgraph/drawio-desktop/releases "drawio-$arch-$VERSION.$pkgtype") || fatal "Can't get package URL"
epm install "$PKG"
epm install "$PKGURL"
......@@ -2,19 +2,11 @@
BASEPKGNAME=microsoft-edge
SUPPORTEDARCHES="x86_64"
VERSION="$2"
PRODUCTALT="stable beta dev"
DESCRIPTION="Microsoft Edge browser (dev) from the official site"
BRANCH=stable
for i in $PRODUCTALT ; do
if [ "$2" = "$i" ] || epm installed $BASEPKGNAME-$i ; then
BRANCH="$i"
fi
done
PKGNAME=$BASEPKGNAME-$BRANCH
. $(dirname $0)/common.sh
# epm uses eget to download * names
epm install "https://packages.microsoft.com/repos/edge/pool/main/m/$PKGNAME/${PKGNAME}_*_amd64.deb"
epm install "https://packages.microsoft.com/repos/edge/pool/main/m/$PKGNAME/${PKGNAME}_${VERSION}_amd64.deb"
......@@ -18,6 +18,6 @@ case $arch in
fatal "Unsupported arch $arch for $(epm print info -d)"
esac
VERSION="2.4"
PKGURL="https://github.com/unxed/far2l-deb/raw/master/portable/far2l_portable_$arch.tar.gz"
epm pack --install $PKGNAME "$PKGURL" "2.4"
epm pack --install $PKGNAME "$PKGURL" "$VERSION"
......@@ -2,21 +2,19 @@
PKGNAME=softmaker-freeoffice-2021
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="SoftMaker Free Office from the official site"
TIPS="Run epm play freeoffice=<version> to install some specific version"
. $(dirname $0)/common.sh
pkgver="*"
[ -n "$2" ] && pkgver="$2"
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
file="softmaker-freeoffice-$pkgver*.x86_64.rpm"
file="softmaker-freeoffice-$VERSION*.x86_64.rpm"
;;
*)
file="softmaker-freeoffice-$pkgver*_amd64.deb"
file="softmaker-freeoffice-$VERSION*_amd64.deb"
;;
esac
......
......@@ -2,6 +2,7 @@
PKGNAME=geogebra-classic
SUPPORTEDARCHES="x86_64 x86"
VERSION="$2"
DESCRIPTION="Geogebra 6 from the official site"
. $(dirname $0)/common.sh
......@@ -23,10 +24,10 @@ repack=''
case $pkgtype in
deb)
epm install "http://www.geogebra.net/linux/pool/main/g/geogebra-classic/$(epm print constructname $PKGNAME "*" $arch)"
epm install "http://www.geogebra.net/linux/pool/main/g/geogebra-classic/$(epm print constructname $PKGNAME "$VERSION" $arch)"
;;
rpm)
epm $repack install "http://www.geogebra.net/linux/rpm/$arch/$(epm print constructname $PKGNAME "*" $arch)"
epm $repack install "http://www.geogebra.net/linux/rpm/$arch/$(epm print constructname $PKGNAME "$VERSION" $arch)"
;;
*)
fatal "Unsupported $pkgtype"
......
......@@ -2,12 +2,15 @@
PKGNAME=icq
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="ICQ for Linux from the official site"
. $(dirname $0)/common.sh
VERSION=$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/icq-im | epm --inscript tool json -b | grep version | head -n1 | sed -e 's|.*"\([0-9.]*\)".*|\1|') || fatal "Can't get current version" #'
#VERSION="10.0.16100"
if [ "$VERSION" = "*" ] ; then
VERSION=$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/icq-im | epm --inscript tool json -b | grep version | head -n1 | sed -e 's|.*"\([0-9.]*\)".*|\1|') || fatal "Can't get current version" #'
#VERSION="10.0.16100"
fi
#PKGURL="https://icq-www.hb.bizmrg.com/linux/x64/icq.tar.xz"
PKGURL="https://hb.bizmrg.com/icq-www/linux/x64/packages/$VERSION/icq-${VERSION}_64bit.tar.xz"
......
......@@ -2,6 +2,7 @@
PKGNAME=iptvnator
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION='IPTV player from the official site'
. $(dirname $0)/common.sh
......@@ -18,7 +19,7 @@ esac
pkgtype=deb
PKG=$(epm tool eget --list --latest https://github.com/4gray/iptvnator/releases/ "$PKGNAME*$arch.$pkgtype") || fatal "Can't get package URL"
PKG=$(epm tool eget --list --latest https://github.com/4gray/iptvnator/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
[ -n "$PKG" ] || fatal "Can't get package URL"
epm install "$PKG"
#!/bin/sh
DESCRIPTION="Kubo - An IPFS implementation in Go from the official site"
SUPPORTEDARCHES="x86_64 x86 aarch64 armhf"
BASEPKGNAME=kubo
PRODUCTALT="stable beta"
SUPPORTEDARCHES="x86_64 x86 aarch64 armhf"
PRODUCTALT="'' beta"
VERSION="$2"
DESCRIPTION="Kubo - An IPFS implementation in Go from the official site"
. $(dirname $0)/common.sh
# kubo or kubo-beta
if [ "$2" = "beta" ] || epm installed $BASEPKGNAME-beta ; then
PKGNAME=$BASEPKGNAME-beta
if [ "$VERSION" = "*" ] ; then
# beta:
# v0.20.0-rc1_linux
# kubo_v*-rc*_linux*.tar.gz
version="*-rc*_"
else
PKGNAME=$BASEPKGNAME
# v0.20.0_linux
# kubo_v*.[0-9]_linux*.tar.gz
version="*.[0-9]_"
[ "$PKGNAME" = "$BASEPKGNAME" ] && VERSION="*.[0-9]_" || VERSION="*-rc*_"
fi
. $(dirname $0)/common.sh
arch="$(epm print info -a)"
case "$arch" in
x86_64)
......@@ -40,5 +35,5 @@ case "$arch" in
esac
PKGURL="$(eget --list --latest https://github.com/ipfs/kubo/releases ${BASEPKGNAME}_v$version$file)"
PKGURL="$(eget --list --latest https://github.com/ipfs/kubo/releases ${BASEPKGNAME}_v$VERSION$file)"
epm pack --install $PKGNAME "$PKGURL"
......@@ -2,6 +2,7 @@
PKGNAME=librewolf
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="LibreWolf - a custom version of Firefox, focused on privacy, security and freedom"
. $(dirname $0)/common.sh
......@@ -11,10 +12,10 @@ arch=x86_64
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
PKG="https://rpm.librewolf.net/pool/librewolf*.rpm"
PKG="https://rpm.librewolf.net/pool/librewolf$VERSION.rpm"
;;
deb)
PKG="https://deb.librewolf.net/pool/focal/librewolf-*$arch.deb"
PKG="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
;;
*)
fatal "Package target $pkgtype is not supported yet"
......@@ -24,7 +25,7 @@ esac
case "$(epm print info -s)" in
alt)
# uses old glibc needed for ALT p10
PKG="https://deb.librewolf.net/pool/focal/librewolf-*$arch.deb"
PKG="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
epm install --repack $PKG
exit
;;
......
......@@ -2,13 +2,14 @@
PKGNAME=liteide
SUPPORTEDARCHES="x86_64 x86"
VERSION="$2"
DESCRIPTION="LiteIDE is a simple, open source, cross-platform Go IDE. From the official site"
. $(dirname $0)/common.sh
archbit="$(epm print info -b)"
PKGURL=$(epm tool eget --list --latest https://github.com/visualfc/liteide/releases "liteidex*.linux$archbit-qt5*-system.tar.gz") #"
PKGURL=$(epm tool eget --list --latest https://github.com/visualfc/liteide/releases "liteidex$VERSION.linux$archbit-qt5*-system.tar.gz") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
# cd to tmp dir
......
......@@ -11,6 +11,7 @@ case $pkgtype in
esac
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="CAD of printed circuit boards"
. $(dirname $0)/common.sh
......@@ -18,10 +19,10 @@ DESCRIPTION="CAD of printed circuit boards"
case $pkgtype in
rpm)
mask="$PKGNAME-*.x86_64.rpm"
mask="$PKGNAME-$VERSION*.x86_64.rpm"
;;
*)
mask="$PKGNAME_*_amd64.deb"
mask="$PKGNAME_$VERSION*_amd64.deb"
;;
esac
......
......@@ -2,6 +2,7 @@
PKGNAME=master-pdf-editor
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Master PDF Editor from the official site"
. $(dirname $0)/common.sh
......@@ -11,13 +12,13 @@ repack=''
# Strict supported list
case $(epm print info -e) in
AstraLinuxCE/*|Debian/9|Ubuntu/20)
PKG="master-pdf-editor-*-qt5.9.x86_64.deb"
PKG="master-pdf-editor-$VERSION-qt5.9.x86_64.deb"
;;
AstraLinuxSE/1.7*|Debian/*|Ubuntu/*)
PKG="master-pdf-editor-*-qt5.x86_64.deb"
PKG="master-pdf-editor-$VERSION-qt5.x86_64.deb"
;;
RedOS/*|AlterOS/*|ALTLinux/*|ALTServer/*|MOC/*)
PKG="master-pdf-editor-*-qt5.x86_64.rpm"
PKG="master-pdf-editor-$VERSION-qt5.x86_64.rpm"
repack='--repack'
;;
esac
......@@ -25,10 +26,10 @@ esac
if [ -z "$PKG" ] ; then
case $(epm print info -p) in
rpm)
PKG="master-pdf-editor-*-qt5.x86_64.rpm"
PKG="master-pdf-editor-$VERSION-qt5.x86_64.rpm"
;;
*)
PKG="master-pdf-editor-*-qt5.x86_64.deb"
PKG="master-pdf-editor-$VERSION-qt5.x86_64.deb"
;;
esac
fi
......
......@@ -2,16 +2,15 @@
PKGNAME=meridius
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Meridius — music player for VK"
. $(dirname $0)/common.sh
VERSION="$2"
if [ -n "$VERSION" ] ; then
URL="https://github.com/PurpleHorrorRus/Meridius/releases/download/v$VERSION/meridius-$VERSION.tar.gz"
if [ "$VERSION" != "*" ] ; then
PKGURL="https://github.com/PurpleHorrorRus/Meridius/releases/download/v$VERSION/meridius-$VERSION.tar.gz"
else
URL=$(epm tool eget --list --latest https://github.com/PurpleHorrorRus/Meridius/releases "$PKGNAME-*.tar.gz") || fatal "Can't get package URL"
PKGURL=$(epm tool eget --list --latest https://github.com/PurpleHorrorRus/Meridius/releases "$PKGNAME-*.tar.gz") || fatal "Can't get package URL"
fi
epm install "$URL"
epm install "$PKGURL"
......@@ -2,6 +2,7 @@
PKGNAME=myoffice-standard-home-edition
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="MyOffice Standart Home Edition for Linux from the official site"
if [ "$1" = "--remove" ] ; then
......@@ -19,7 +20,7 @@ epm assure xdg-desktop-menu xdg-utils
# https://preset.myoffice-app.ru/myoffice-standard-home-edition-2.3.0-x86_64.rpm
# https://preset.myoffice-app.ru/myoffice-standard-home-edition_2.3.0_amd64.deb
PKGMASK="$(epm print constructname $PKGNAME "*" "" "" "" "[-_]")"
PKG="$(epm tool eget --list --latest https://myoffice.ru/products/standard-home-edition/ "$PKGMASK")" || fatal "Can't get package URL"
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" "" "" "" "[-_]")"
PKGURL="$(epm tool eget --list --latest https://myoffice.ru/products/standard-home-edition/ "$PKGMASK")" || fatal "Can't get package URL"
epm install "$PKG"
epm install "$PKGURL"
......@@ -2,12 +2,13 @@
PKGNAME=net.downloadhelper.coapp
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Video DownloadHelper Companion App"
URL="https://www.downloadhelper.net/install-coapp"
. $(dirname $0)/common.sh
mask="$PKGNAME-*_amd64.deb"
mask="$PKGNAME-${VERSION}_amd64.deb"
PKGURL=$(eget --list --latest https://github.com/mi-g/vdhcoapp/releases/ $mask) || fatal "Can't get package URL"
......
......@@ -2,6 +2,7 @@
PKGNAME=apache-netbeans
#SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Apache NetBeans 17 from the official site"
. $(dirname $0)/common.sh
......@@ -9,10 +10,10 @@ DESCRIPTION="Apache NetBeans 17 from the official site"
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
mask="apache-netbeans-*.noarch.rpm"
mask="apache-netbeans-$VERSION.noarch.rpm"
;;
*)
mask="apache-netbeans_*_all.deb"
mask="apache-netbeans_$VERSION_all.deb"
;;
esac
......
......@@ -2,6 +2,7 @@
PKGNAME=obsidian
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION='Obsidian from the official site'
. $(dirname $0)/common.sh
......@@ -9,7 +10,6 @@ DESCRIPTION='Obsidian from the official site'
arch=amd64
pkgtype=deb
PKG=$(epm tool eget --list --latest https://github.com/obsidianmd/obsidian-releases/releases/ "$PKGNAME*$arch.$pkgtype") || fatal "Can't get package URL"
[ -n "$PKG" ] || fatal "Can't get package URL"
PKGURL=$(epm tool eget --list --latest https://github.com/obsidianmd/obsidian-releases/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKG"
epm install "$PKGURL"
#!/bin/sh
DESCRIPTION="Opera browser from the official site"
PRODUCTALT="stable beta developer"
BRANCH=stable
if [ "$2" = "beta" ] || epm installed opera-beta ; then
BRANCH=beta
fi
if [ "$2" = "developer" ] || epm installed opera-developer ; then
BRANCH=developer
fi
PKGNAME=opera-$BRANCH
BASEPKGNAME=opera
SUPPORTEDARCHES="x86_64"
PRODUCTALT="stable beta developer"
VERSION="$2"
DESCRIPTION="Opera browser from the official site"
. $(dirname $0)/common.sh
......@@ -25,10 +16,10 @@ epm install --skip-installed ffmpeg-plugin-browser || epm install --skip-install
if [ "$(epm print info -p)" = "rpm" ] ; then
# they put all branch here (rpm only): https://rpm.opera.com/rpm/
[ "$(epm print info -s)" = "alt" ] && repack='--repack' || repack=''
PKGURL="https://rpm.opera.com/rpm/opera_$BRANCH-*-linux-release-x64-signed.rpm"
PKGURL="https://rpm.opera.com/rpm/opera_$BRANCH-$VERSION-linux-release-x64-signed.rpm"
epm install $repack $PKGURL
exit
fi
PKGURL="https://deb.opera.com/opera-developer/pool/non-free/o/opera-$BRANCH/$(epm print constructname $PKGNAME "*" $arch deb)"
PKGURL="https://deb.opera.com/opera-developer/pool/non-free/o/opera-$BRANCH/$(epm print constructname $PKGNAME "$VERSION" $arch deb)"
epm install "$PKGURL"
......@@ -3,6 +3,7 @@
PKGNAME=Pencil
REPOPKGNAME=pencil
SUPPORTEDARCHES="x86_64 x86"
VERSION="$2"
DESCRIPTION="Pencil from the official site"
URL="https://pencil.evolus.vn/"
......@@ -30,7 +31,7 @@ repack=''
# https://pencil.evolus.vn/dl/V3.1.1.ga/Pencil_3.1.1.ga_amd64.deb
# https://pencil.evolus.vn/dl/V3.1.1.ga/Pencil_3.1.1.ga_i386.deb
PKGMASK="$(epm print constructname $PKGNAME "*.ga" $arch)"
PKGMASK="$(epm print constructname $PKGNAME "$VERSION.ga" $arch)"
PKGURL="$(epm tool eget --list --latest https://pencil.evolus.vn/Downloads.html $PKGMASK)" || fatal "Can't get package URL"
epm $repack install "$PKGURL"
......@@ -2,13 +2,14 @@
PKGNAME=portproton
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION='PortProton (from the repository if the package is there, or from the official site)'
. $(dirname $0)/common.sh
res=0
if ! epm install portproton ; then
PKGURL="$(eget --list --latest https://github.com/Castro-Fidel/PortProton_dpkg/releases portproton_*amd64.deb)"
PKGURL="$(eget --list --latest https://github.com/Castro-Fidel/PortProton_dpkg/releases portproton_${VERSION}amd64.deb)"
epm install $PKGURL
res=$?
fi
......
......@@ -2,6 +2,7 @@
PKGNAME=realvnc-vnc-server
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Real VNC Server from the official site"
. $(dirname $0)/common.sh
......@@ -14,10 +15,10 @@ repack=''
case $pkgtype-$arch in
rpm-x86_64)
PKG="VNC-Server-*-Linux-x64.rpm"
PKG="VNC-Server-$VERSION-Linux-x64.rpm"
;;
*-x86_64)
PKG="VNC-Server-*-Linux-x64.deb"
PKG="VNC-Server-$VERSION-Linux-x64.deb"
;;
*)
fatal "Unsupported arch"
......
......@@ -2,6 +2,7 @@
PKGNAME=realvnc-vnc-viewer
SUPPORTEDARCHES="x86_64 armhf aarch64"
VERSION="$2"
DESCRIPTION="Real VNC Viewer from the official site"
. $(dirname $0)/common.sh
......@@ -14,16 +15,16 @@ repack=''
case $pkgtype-$arch in
rpm-x86_64)
PKG="VNC-Viewer-*-Linux-x64.rpm"
PKG="VNC-Viewer-$VERSION-Linux-x64.rpm"
;;
*-x86_64)
PKG="VNC-Viewer-*-Linux-x64.deb"
PKG="VNC-Viewer-$VERSION-Linux-x64.deb"
;;
*-aarch64)
PKG="VNC-Viewer-*-Linux-ARM64.deb"
PKG="VNC-Viewer-$VERSION-Linux-ARM64.deb"
;;
*-armhf)
PKG="VNC-Viewer-*-Linux-ARM.deb"
PKG="VNC-Viewer-$VERSION-Linux-ARM.deb"
;;
*)
fatal "Unsupported arch"
......
......@@ -2,6 +2,7 @@
PKGNAME=rocketchat
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION='Rocket.Chat Linux Desktop Client from the official site'
. $(dirname $0)/common.sh
......@@ -9,7 +10,6 @@ DESCRIPTION='Rocket.Chat Linux Desktop Client from the official site'
arch=amd64
pkgtype=deb
PKG=$(epm tool eget --list --latest https://github.com/RocketChat/Rocket.Chat.Electron/releases/ "$PKGNAME*$arch.$pkgtype") || fatal "Can't get package URL"
[ -n "$PKG" ] || fatal "Can't get package URL"
PKGURL=$(epm tool eget --list --latest https://github.com/RocketChat/Rocket.Chat.Electron/releases/ "$PKGNAME*$VERSION*$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKG"
epm install "$PKGURL"
......@@ -2,6 +2,7 @@
PKGNAME=rstudio
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION='RStudio from the official site'
. $(dirname $0)/common.sh
......@@ -35,8 +36,7 @@ case $(epm print info -e) in
;;
esac
PKGMASK="$(epm print constructname $PKGNAME "*" $arch $pkgtype "-" "-")"
PKG="$(epm tool eget --list https://www.rstudio.com/products/rstudio/download/ $PKGMASK | grep $PKGFILTER)" || fatal "Can't get package URL"
[ -n "$PKG" ] || fatal "Can't get package URL"
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype "-" "-")"
PKGURL="$(epm tool eget --list https://www.rstudio.com/products/rstudio/download/ $PKGMASK | grep $PKGFILTER)" || fatal "Can't get package URL"
epm install $repack "$PKG"
epm install $repack "$PKGURL"
......@@ -2,15 +2,16 @@
PKGNAME=rudesktop
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="RuDesktop for Linux from the official site"
. $(dirname $0)/common.sh
case "$(epm print info -d)" in
AstraLinux*)
PKGNAME=rudesktop-astra
;;
esac
URL=$(epm tool eget --list --latest https://rudesktop.ru/ $PKGNAME-1*.deb)
epm install $URL
. $(dirname $0)/common.sh
PKGURL=$(epm tool eget --list --latest https://rudesktop.ru/ $PKGNAME-$VERSION.deb)
epm install $PKGURL
......@@ -2,6 +2,7 @@
PKGNAME=rustdesk
SUPPORTEDARCHES="x86_64 armhf"
VERSION="$2"
DESCRIPTION="RustDesk — Display and control your PC and Android devices"
PRODUCTALT="stable nightly"
......@@ -11,7 +12,7 @@ arch=$(epm print info -a)
pkgtype=deb
BRANCH=stable
if [ "$2" = "nightly" ] ; then
if [ "$VERSION" = "nightly" ] ; then
BRANCH=nightly
SUPPORTEDARCHES="x86_64 aarch64"
MASK="$PKGNAME-*$arch*.$pkgtype"
......
......@@ -2,11 +2,12 @@
PKGNAME=signal-desktop
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION='Signal private messenger from the official site'
DOWNURL="https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop"
. $(dirname $0)/common.sh
URL=$(epm tool eget --list --latest http://mirror.cs.uchicago.edu/signal/pool/main/s/signal-desktop/ '${PKGNAME}_*_amd64.deb')
URL=$(epm tool eget --list --latest http://mirror.cs.uchicago.edu/signal/pool/main/s/signal-desktop/ '${PKGNAME}_${VERSION}_amd64.deb')
URL=$(echo "$URL" | sed -e "s|\(.*/\)|$DOWNURL/|")
epm install "$URL"
......@@ -2,6 +2,7 @@
PKGNAME=skypeforlinux
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Skype for Linux - Stable/Release Version from the official site"
. $(dirname $0)/common.sh
......@@ -11,16 +12,11 @@ DESCRIPTION="Skype for Linux - Stable/Release Version from the official site"
#pkgtype=$(epm print info -p)
pkgtype=deb
# don't used
complex_get()
{
pkgtype=deb
if [ "$VERSION" != "*" ] ; then
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=skypeforlinux-stable-bin
_pkgname=skypeforlinux
pkgver=8.65.0.78
PKG= "https://repo.skype.com/deb/pool/main/s/${_pkgname}/${_pkgname}_${pkgver}_amd64.deb"
}
PKGURL="https://repo.skype.com/deb/pool/main/s/${PKGNAME}/${PKGNAME}_${VERSION}_amd64.deb"
else
PKGURL="https://repo.skype.com/latest/$PKGNAME-64.$pkgtype"
fi
PKG="https://repo.skype.com/latest/skypeforlinux-64.$pkgtype"
epm install "$PKG"
epm install "$PKGURL"
......@@ -2,6 +2,7 @@
PKGNAME=slack
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION='Slack from the official site'
. $(dirname $0)/common.sh
......@@ -9,7 +10,7 @@ DESCRIPTION='Slack from the official site'
arch=x86_64
pkgtype=rpm
PKGMASK="$(epm print constructname $PKGNAME "*" $arch $pkgtype)"
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch $pkgtype)"
PKG="$(epm tool eget --list --latest https://slack.com/downloads/instructions/fedora $PKGMASK)" || fatal "Can't get package URL"
[ -n "$PKG" ] || fatal "Can't get package URL"
......
......@@ -2,10 +2,10 @@
PKGNAME=spotify-client
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Spotify client for Linux from the official site"
. $(dirname $0)/common.sh
# 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)"
epm install "https://repository-origin.spotify.com/pool/non-free/s/spotify-client/$(epm print constructname $PKGNAME "$VERSION*" amd64 deb)"
......@@ -2,6 +2,7 @@
PKGNAME=sublime-text
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION='Sublime Text 4 from the official site'
. $(dirname $0)/common.sh
......@@ -19,7 +20,7 @@ case "$arch" in
;;
esac
PKGURL=$(epm tool eget --list --latest https://www.sublimetext.com/download_thanks "sublime_text_build_*_$arch.tar.xz") || fatal "Can't get package URL"
PKGURL=$(epm tool eget --list --latest https://www.sublimetext.com/download_thanks "sublime_text_build_${VERSION}_$arch.tar.xz") || fatal "Can't get package URL"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
PKGFILE=$(echo /tmp/$(basename $PKGURL) | sed -e "s|/sublime_text_build_|/$PKGNAME-|")
......
......@@ -2,6 +2,7 @@
PKGNAME=SweetHome3D
SUPPORTEDARCHES="x86_64 x86"
VERSION="$2"
DESCRIPTION=''
. $(dirname $0)/common.sh
......@@ -25,7 +26,7 @@ esac
#PKGURL="http://download.sourceforge.net/project/sweethome3d/SweetHome3D/SweetHome3D-$VERSION/SweetHome3D-$VERSION-linux-$arch.tgz"
# http://sourceforge.net/projects/sweethome3d/files/SweetHome3D/SweetHome3D-7.1/SweetHome3D-7.1-linux-x86.tgz/download
URL="$(eget -4 --list --latest https://www.sweethome3d.com/download.jsp SweetHome3D-*-linux-$arch.tgz/download)"
URL="$(eget -4 --list --latest https://www.sweethome3d.com/download.jsp SweetHome3D-$VERSION-linux-$arch.tgz/download)"
PKGURL="$(echo "$URL" | sed -e "s|http://sourceforge.net/projects/sweethome3d/files|http://download.sourceforge.net/project/sweethome3d|" -e 's|/download$||' )"
epm install "$PKGURL"
......@@ -2,6 +2,7 @@
PKGNAME=teams
SUPPORTEDARCHES="x86_64"
VERSION="$2"
# After April 12, 2023, Microsoft Teams Free (classic), the legacy free Teams app for business, will no longer be available.
# https://www.microsoft.com/en-us/microsoft-teams/free-classic-retirement?rtc=1
DESCRIPTION='' #"Microsoft Teams for Linux from the official site"
......@@ -28,4 +29,4 @@ fi
# $ diff -ru teams-1.5.00.23861-1.x86_64 teams_1.5.00.23861_amd64
# epm uses eget to download * names
epm install $repack "$URL/$(epm print constructname teams "[0-9]*" $arch $pkgtype)"
epm install $repack "$URL/$(epm print constructname teams "$VERSION" $arch $pkgtype)"
......@@ -2,6 +2,7 @@
PKGNAME="teamviewer"
SUPPORTEDARCHES="x86_64 armhf"
VERSION="$2"
DESCRIPTION="Teamviewer from the official site"
. $(dirname $0)/common.sh
......@@ -26,7 +27,7 @@ repack=''
[ "$(epm print info -p)" = "deb" ] || repack='--repack'
# epm uses eget to download * names
epm $repack install "https://download.teamviewer.com/download/linux/$(epm print constructname $PKGNAME)" || exit
epm $repack install "https://download.teamviewer.com/download/linux/$(epm print constructname $PKGNAME "$VERSION")" || exit
cat <<EOF
......
#!/bin/sh
PKGNAME=Telegram
BASEPKGNAME=Telegram
SUPPORTEDARCHES="x86_64"
DESCRIPTION="Telegram client from the official site"
PRODUCTALT="stable beta"
PRODUCTALT="'' beta"
VERSION="$2"
TIPS="Run 'epm play telegram-desktop=beta' to install beta version of the Telegram client. Run 'epm play telegram-desktop version' to install the version of the Telegram client."
BRANCH="[0-9]"
if echo "$2" | grep -q "beta" || epm installed Telegram-beta ; then
BRANCH=beta
PKGNAME=$PKGNAME-$BRANCH
fi
VERSION="*$BRANCH"
[ -n "$2" ] && [ "$2" != "beta" ] && VERSION="$2"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
[ "$PKGNAME" = "$BASEPKGNAME" ] || VERSION="*beta"
fi
PKGURL=$(epm tool eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.$VERSION.tar.xz") #"
PKGURL=$(epm tool eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.$VERSION*.tar.xz") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
epm --install pack $PKGNAME "$PKGURL"
......@@ -7,5 +7,5 @@ DESCRIPTION='Todoist client application from the official site'
. $(dirname $0)/common.sh
epm install https://todoist.com/linux_app/appimage
epm install "https://todoist.com/linux_app/appimage"
......@@ -2,6 +2,7 @@
PKGNAME=trueconf
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="TrueConf client for Linux from the official site"
. $(dirname $0)/common.sh
......@@ -9,27 +10,27 @@ DESCRIPTION="TrueConf client for Linux from the official site"
epmopt=''
case "$(epm print info -e)" in
ALTLinux/p10|ALTServer/10|ALTLinux/Sisyphus)
URL="https://mirror.trueconf.ru/altlinux/p10/x86_64/RPMS.non-free/trueconf-[0-9]*.x86_64.rpm"
URL="https://mirror.trueconf.ru/altlinux/p10/x86_64/RPMS.non-free/trueconf-${VERSION}.x86_64.rpm"
epmopt='--direct --repack'
;;
ALTLinux/p9)
URL="https://mirror.trueconf.ru/altlinux/p9/x86_64/RPMS.non-free/trueconf-[0-9]*.x86_64.rpm"
URL="https://mirror.trueconf.ru/altlinux/p9/x86_64/RPMS.non-free/trueconf-${VERSION}.x86_64.rpm"
epmopt='--direct --repack'
;;
AstraLinuxCE/2.12*)
URL="https://mirror.trueconf.ru/astra212/pool/non-free/t/trueconf/trueconf_[0-9]_amd64.deb"
URL="https://mirror.trueconf.ru/astra212/pool/non-free/t/trueconf/trueconf_${VERSION}_amd64.deb"
;;
AstraLinuxSE/1.7*)
URL="https://mirror.trueconf.ru/astra17/pool/non-free/t/trueconf/trueconf_[0-9]_amd64.deb"
URL="https://mirror.trueconf.ru/astra17/pool/non-free/t/trueconf/trueconf_${VERSION}_amd64.deb"
;;
RedOS/7.2)
URL="https://mirror.trueconf.ru/redos/7.2/x86_64/release/trueconf-[0-9]*.x86_64.rpm"
URL="https://mirror.trueconf.ru/redos/7.2/x86_64/release/trueconf-${VERSION}.x86_64.rpm"
;;
RedOS/7.3*)
URL="https://mirror.trueconf.ru/redos/7.3.1/x86_64/release/trueconf-[0-9]*.x86_64.rpm"
URL="https://mirror.trueconf.ru/redos/7.3.1/x86_64/release/trueconf-${VERSION}.x86_64.rpm"
;;
ROSA/2021)
URL="https://mirror.trueconf.ru/rosa/R12/x86_64/testing/trueconf-[0-9].x86_64.rpm"
URL="https://mirror.trueconf.ru/rosa/R12/x86_64/testing/trueconf-${VERSION}.x86_64.rpm"
;;
*)
fatal "$(epm print info -e) is not supported"
......
......@@ -2,10 +2,11 @@
PKGNAME=ungoogled-chromium
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Google Chromium, sans integration with Google from the official site"
. $(dirname $0)/common.sh
PKG=$(epm tool eget --list --latest https://github.com/clickot/ungoogled-chromium-binaries/releases ungoogled-chromium_*_linux.tar.xz) || fatal "Can't get package URL"
PKG=$(epm tool eget --list --latest https://github.com/clickot/ungoogled-chromium-binaries/releases ungoogled-chromium_${VERSION}_linux.tar.xz) || fatal "Can't get package URL"
epm install "$PKG"
......@@ -2,10 +2,11 @@
PKGNAME=unigine-heaven
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Unigine Heaven 2009 (Unigine Benchmark) from the official site"
. $(dirname $0)/common.sh
PKGURL="$(eget --list --latest https://benchmark.unigine.com/heaven "Unigine_Heaven*.run")"
PKGURL="$(eget --list --latest https://benchmark.unigine.com/heaven "Unigine_Heaven-$VERSION.run")"
epm pack --install $PKGNAME $PKGURL
......@@ -2,11 +2,12 @@
PKGNAME=unigine-superposition
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Unigine Superposition 2017 (Unigine Benchmark) from the official site"
. $(dirname $0)/common.sh
# https://assets.unigine.com/d/Unigine_superposition-4.0.run
PKGURL=$(eget --list --latest https://benchmark.unigine.com/superposition "Unigine_Superposition*.run")
PKGURL=$(eget --list --latest https://benchmark.unigine.com/superposition "Unigine_Superposition-$VERSION.run")
epm pack --install $PKGNAME $PKGURL
......@@ -2,11 +2,12 @@
PKGNAME=unigine-valley
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Unigine Valley 2013 (Unigine Benchmark) from the official site"
. $(dirname $0)/common.sh
# https://assets.unigine.com/d/Unigine_valley-4.0.run
PKGURL=$(eget --list --latest https://benchmark.unigine.com/valley "Unigine_Valley*.run")
PKGURL=$(eget --list --latest https://benchmark.unigine.com/valley "Unigine_Valley-$VERSION.run")
epm pack --install $PKGNAME $PKGURL
......@@ -2,14 +2,14 @@
PKGNAME=vinteo.desktop
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Client for Vinteo videoconferencing server"
. $(dirname $0)/common.sh
arch=amd64
pkgtype=deb
PKG=$(epm tool eget --list --latest https://download.vinteo.com/VinteoClient/linux/ "Vinteo.Desktop-[[:digit:]]*-$arch.$pkgtype") || fatal "Can't get package URL"
PKGURL=$(epm tool eget --list --latest https://download.vinteo.com/VinteoClient/linux/ "Vinteo.Desktop-$VERSION-$arch.$pkgtype") || fatal "Can't get package URL"
epm install "$PKG"
epm install "$PKGURL"
......@@ -4,6 +4,7 @@ PKGNAME=virtualhere
PRODUCTDIR=/opt/$PKGNAME
BINNAME=vhusbd
SUPPORTEDARCHES="x86_64 armhf mips mipsel aarch64 x86"
VERSION="$2"
DESCRIPTION='Generic VirtualHere USB Server from the official site'
. $(dirname $0)/common.sh
......@@ -55,8 +56,13 @@ pack_tar() {
a='' tar cf $tarname .$(dirname $dest)
}
VERSION="$(epm tool eget -O- https://virtualhere.com/usb_server_software | grep "<b>Version [0-9.]*</b>" | sed -e 's|.*<b>Version \([0-9.]*\)</b>.*|\1|')"
[ -n "$VERSION" ] || fatal "Can't get version for $PKGNAME"
# FIXME
VERSION="*"
if [ "$VERSION" = "*" ] ; then
VERSION="$(epm tool eget -O- https://virtualhere.com/usb_server_software | grep "<b>Version [0-9.]*</b>" | sed -e 's|.*<b>Version \([0-9.]*\)</b>.*|\1|')"
[ -n "$VERSION" ] || fatal "Can't get version for $PKGNAME"
fi
PKG=$PKGNAME-$VERSION.tar
pack_tar $PKG opt/$PKGNAME/$BINNAME
......
#!/bin/sh
DESCRIPTION="Vivaldi browser from the official site"
BASEPKGNAME=vivaldi
PRODUCTALT="stable snapshot"
BRANCH=stable
if [ "$2" = "snapshot" ] || epm installed vivaldi-snapshot ; then
BRANCH=snapshot
fi
PKGNAME=vivaldi-$BRANCH
VERSION="$2"
SUPPORTEDARCHES="x86_64 x86 aarch64 armhf"
DESCRIPTION="Vivaldi browser from the official site"
TIPS="Run 'epm play vivaldi=snapshot' to install snapshot version of the browser."
. $(dirname $0)/common.sh
......@@ -33,15 +30,16 @@ esac
# epm uses eget to download * names
#epm install "https://repo.vivaldi.com/archive/deb/pool/main/$(epm print constructname $PKGNAME "*" $arch deb)"
if [ "$BRANCH" = "snapshot" ] ; then
if [ "$PKGNAME" = "$BASEPKGNAME-snapshot" ] ; then
# copied from install-vivaldi.sh script
# https://help.vivaldi.com/desktop/install-update/install-snapshots-on-non-deb-rpm-distros/
DEBARCH=$arch
VIVALDI_STREAM=vivaldi-snapshot
VIVALDI_VERSION=$(epm tool eget -O- "https://repo.vivaldi.com/archive/deb/dists/stable/main/binary-$DEBARCH/Packages.gz" | gzip -d | grep -A6 -x "Package: $VIVALDI_STREAM" | sed -n 's/^Version: \(\([0-9]\+\.\)\{3\}[0-9]\+-[0-9]\+\)/\1/p' | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1) #'
PKGURL="https://downloads.vivaldi.com/snapshot/vivaldi-snapshot_${VIVALDI_VERSION}_$arch.deb"
if [ "$VERSION" = "*" ] ; then
VERSION=$(epm tool eget -O- "https://repo.vivaldi.com/archive/deb/dists/stable/main/binary-$DEBARCH/Packages.gz" | gzip -d | grep -A6 -x "Package: $PKGNAME" | sed -n 's/^Version: \(\([0-9]\+\.\)\{3\}[0-9]\+-[0-9]\+\)/\1/p' | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -n 1) #'
fi
PKGURL="https://downloads.vivaldi.com/snapshot/vivaldi-snapshot_${VERSION}_$arch.deb"
else
PKGURL="$(epm tool eget --list --latest https://vivaldi.com/ru/download "$(epm print constructname $PKGNAME "*" $arch deb)")" #" || fatal
PKGURL="$(epm tool eget --list --latest https://vivaldi.com/ru/download "$(epm print constructname $PKGNAME "$VERSION" $arch deb)")" #" || fatal
fi
epm install $PKGURL || fatal
......
......@@ -2,6 +2,7 @@
PKGNAME=vk
SUPPORTEDARCHES="x86_64 x86"
VERSION="$2"
DESCRIPTION="VK Messenger from the official site"
. $(dirname $0)/common.sh
......@@ -13,6 +14,6 @@ case "$arch" in
;;
esac
URL=$(epm tool eget --list --latest https://desktop.userapi.com/rpm/master/ "*.$arch.rpm")
PKGURL=$(epm tool eget --list --latest https://desktop.userapi.com/rpm/master/ "$PKGNAME-$VERSION.$arch.rpm")
epm --repack install $URL
epm --repack install $PKGURL
......@@ -2,6 +2,7 @@
PKGNAME=whatsapp-for-linux
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION='' #"An unofficial WhatsApp desktop application for Linux"
. $(dirname $0)/common.sh
......@@ -13,6 +14,6 @@ DESCRIPTION='' #"An unofficial WhatsApp desktop application for Linux"
# ;;
#esac
arch=x86_64
URL=$(epm tool eget --list --latest https://github.com/eneshecan/whatsapp-for-linux/releases "$PKGNAME-*-$arch.AppImage") || fatal "Can't get package URL"
URL=$(epm tool eget --list --latest https://github.com/eneshecan/whatsapp-for-linux/releases "$PKGNAME-$VERSION-$arch.AppImage") || fatal "Can't get package URL"
epm install $URL
......@@ -7,9 +7,22 @@ TIPS="Run epm play wine=wine-vanilla to install wine-vanilla package"
MAIN=wine
vendor="$(epm print info -s)" ; [ "$vendor" = "alt" ] || { echo "Only ALT distros is supported for now" ; exit 1 ; }
vendor="$(epm print info -s)"
arch="$(epm print info -a)"
if [ "$vendor" != "alt" ] ; then
# Устанавливаем wine
epm install $PKGNAME || exit
case $arch in
x86_64)
# Доставляем пропущенные модули (подпакеты) для установленных 64-битных
epm prescription i586-fix
;;
esac
exit
fi
PKGCOMMON="wine-mono wine-gecko winetricks"
[ -n "$2" ] && MAIN="$2"
......
......@@ -2,25 +2,27 @@
PKGNAME=wps-office
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="WPS Office for Linux from the official site"
TIPS="Run epm play wpsoffice=<version> to install some specific version"
. $(dirname $0)/common.sh
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wps-office
pkgverstr=$(epm tool eget -O- "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=wps-office" | grep "^pkgver=")
eval $pkgverstr
[ -n "$pkgver" ] || pkgver=11.1.0.11664
[ -n "$2" ] && pkgver="$2"
if [ "$VERSION" = "*" ] ; then
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=wps-office
pkgverstr=$(epm tool eget -O- "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=wps-office" | grep "^pkgver=")
eval $pkgverstr
[ -n "$pkgver" ] || pkgver=11.1.0.11664
VERSION="$pkgver"
fi
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${pkgver##*.}/wps-office-${pkgver}.XA-1.x86_64.rpm"
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${VERSION##*.}/wps-office-${VERSION}.XA-1.x86_64.rpm"
;;
*)
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${pkgver##*.}/wps-office_${pkgver}.XA_amd64.deb"
PKG="https://wdl1.pcfg.cache.wpscdn.com/wpsdl/wpsoffice/download/linux/${VERSION##*.}/wps-office_${VERSION}.XA_amd64.deb"
;;
esac
......
#!/bin/sh
BASEPKGNAME=yandex-browser
SUPPORTEDARCHES="x86_64"
PRODUCTALT="stable beta"
VERSION="$2"
DESCRIPTION="Yandex browser from the official site"
TIPS="Run 'epm play yandex-browser=beta' to install beta version of the browser."
PRODUCTALT="stable beta"
BRANCH=stable
if [ "$2" = "beta" ] || epm installed yandex-browser-beta ; then
BRANCH=beta
fi
PKGNAME=yandex-browser-$BRANCH
SUPPORTEDARCHES="x86_64"
. $(dirname $0)/common.sh
# See also https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yandex-browser-beta
......@@ -20,11 +14,10 @@ SUPPORTEDARCHES="x86_64"
URL="https://repo.yandex.ru/yandex-browser"
if [ "$(epm print info -s)" = "alt" ] || [ "$(epm print info -p)" != "rpm" ] ; then
# epm uses eget to download * names
epm install "$URL/deb/pool/main/y/$PKGNAME/$(epm print constructname $PKGNAME "*" amd64 deb)" || exit
epm install "$URL/deb/pool/main/y/$PKGNAME/$(epm print constructname $PKGNAME "$VERSION*" amd64 deb)" || exit
else
# https://repo.yandex.ru/yandex-browser/rpm/stable/x86_64/yandex-browser-stable-23.1.1.1114-1.x86_64.rpm
epm install "$URL/rpm/stable/x86_64/$(epm print constructname $PKGNAME "*" x86_64 rpm)" || exit
epm install "$URL/rpm/stable/x86_64/$(epm print constructname $PKGNAME "$VERSION*" x86_64 rpm)" || exit
fi
UPDATEFFMPEG=$(epm ql $PKGNAME | grep update-ffmpeg) || fatal
......
......@@ -2,6 +2,7 @@
PKGNAME=zerotier-one
SUPPORTEDARCHES="x86_64 aarch64 ppc64el"
VERSION="$2"
DESCRIPTION="ZeroTier - A Smart Ethernet Switch for Earth from the official site"
. $(dirname $0)/common.sh
......@@ -40,9 +41,11 @@ esac
dv=$distr/$repo
# hack with --compressed due broken answer from the server
RELEASEURL=$(eget --compressed --list --latest http://download.zerotier.com/RELEASES/*) || fatal
VERSION=$(basename $RELEASEURL)
if [ "$VERSION" = "*" ] ; then
# hack with --compressed due broken answer from the server
RELEASEURL=$(eget --compressed --list --latest http://download.zerotier.com/RELEASES/*) || fatal
VERSION="$(basename $RELEASEURL)"
fi
# hack with --compressed due broken answer from the server
PKGURL="$(eget --compressed --list --latest https://download.zerotier.com/RELEASES/$VERSION/dist/$dv/${PKGNAME}[-_]$VERSION*$arch.$pkg)"
......
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