codium.sh 640 Bytes
Newer Older
Vitaly Lipatov's avatar
Vitaly Lipatov committed
1 2 3
#!/bin/sh

PKGNAME=codium
4 5
SUPPORTEDARCHES="x86_64 aarch64 armhf"
VERSION="$2"
Vitaly Lipatov's avatar
Vitaly Lipatov committed
6 7 8 9
DESCRIPTION="Codium from the official site"

. $(dirname $0)/common.sh

10 11
arch="$(epm print info -a)"
pkgtype="$(epm print info -p)"
12 13 14 15 16 17 18 19
case "$pkgtype" in
    rpm|deb)
        ;;
    *)
        pkgtype="deb"
        ;;
esac

Vitaly Lipatov's avatar
Vitaly Lipatov committed
20 21 22 23 24 25 26 27 28 29 30 31 32
case "$arch-$pkgtype" in
    x86_64-deb)
        arch=amd64
        ;;
    armhf-rpm)
        arch=armv7hl
        ;;
    aarch64)
        arch=arm64
        ;;
esac


33
mask="$(epm print constructname $PKGNAME "$VERSION*" $arch $pkgtype)"
34
PKGURL="$(eget --list --latest https://github.com/VSCodium/vscodium/releases "$mask")"
Vitaly Lipatov's avatar
Vitaly Lipatov committed
35

36
install_pkgurl
Vitaly Lipatov's avatar
Vitaly Lipatov committed
37