Commit 53dabca4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: rewrite r7-office-organizer, add r7-office-organizer-pro

parent e385f7d8
#!/bin/sh
PKGNAME=r7-organizer_pro
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="R7 Office Organizer Pro for Linux from the official site"
URL="https://r7-office.ru/downloadorganizer"
. $(dirname $0)/common.sh
# hack with release part
[ "$VERSION" = "*" ] || VERSION="$VERSION-1"
#arch=$(epm print info --distro-arch)
case $(epm print info -p) in
rpm)
mask="centos/r7organizer_pro-$VERSION.x86_64.rpm"
;;
*)
mask="ubuntu/r7-organizer_pro_${VERSION}_amd64.deb"
;;
esac
case $(epm print info -e) in
AstraLinuxSE/*)
mask="astra/r7-organizer_pro_${VERSION}_astralinux-signed_amd64.deb"
;;
ALTLinux/*)
mask="alt/r7organizer_pro-${VERSION}_altlinux.x86_64.rpm"
;;
esac
if [ "$VERSION" = "*" ] ; then
PKGURL=$(eget -U --list --latest "https://r7-office.ru/downloadorganizer" "$mask")
else
PKGURL="https://download.r7-office.ru/organizer/$mask"
fi
# install with scripts (need for install icons and associations)
# see /etc/eepm/pkgallowscripts.list
# TODO: pack it into the package
epm install --scripts "$PKGURL"
#!/bin/sh
PKGNAME=r7-office-organizer
PKGNAME=r7-organizer
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="R7 Office Organizer for Linux from the official site"
URL="https://support.r7-office.ru/category/organizer/install_organizer/"
URL="https://r7-office.ru/downloadorganizer"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
VERSION="68.5.0"
fi
# TODO: add repack with conflicts to r7-office-organizer, r7-organizer-pro
# hack with release part
[ "$VERSION" = "68.5.0" ] && VERSION="$VERSION-5"
[ "$VERSION" = "*" ] || VERSION="$VERSION-1"
#arch=$(epm print info --distro-arch)
case $(epm print info -p) in
rpm)
PKGURL="https://download.r7-office.ru/centos/r7-office-organizer-$VERSION-centos.ru.x86_64.rpm"
mask="centos/r7organizer-$VERSION.x86_64.rpm"
;;
*)
PKGURL="https://download.r7-office.ru/ubuntu/r7-office-organizer-$VERSION.ru.x86_64.deb"
mask="ubuntu/r7-organizer_${VERSION}_ubuntu-20.04_amd64.deb"
;;
esac
case $(epm print info -e) in
ROSA/2021.1)
PKGURL="https://download.r7-office.ru/rosa/r7-office-organizer-$VERSION-rosa.ru.x86_64.rpm"
AstraLinuxSE/*)
mask="astra/r7-organizer_${VERSION}_astralinux-signed_amd64.deb"
;;
# Ubuntu/*)
# mask="ubuntu/r7-organizer_${VERSION}_ubuntu-20.04_amd64.deb"
# ;;
ALTLinux/*)
PKGURL="https://download.r7-office.ru/altlinux/r7-office-organizer-$VERSION-altlinux.ru.x86_64.rpm"
mask="alt/r7organizer-${VERSION}_altlinux.x86_64.rpm"
;;
esac
if [ "$VERSION" = "*" ] ; then
PKGURL=$(eget -U --list --latest "https://r7-office.ru/downloadorganizer" "$mask")
else
PKGURL="https://download.r7-office.ru/organizer/$mask"
fi
# install with scripts (need for install icons and associations)
# see /etc/eepm/pkgallowscripts.list
# TODO: pack it into the package
epm install "$PKGURL"
epm install --scripts "$PKGURL"
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