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