codium.sh 692 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
DESCRIPTION="Codium from the official site"
7
URL="https://github.com/VSCodium/vscodium/releases"
Vitaly Lipatov's avatar
Vitaly Lipatov committed
8 9 10

. $(dirname $0)/common.sh

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

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


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

37
install_pkgurl
Vitaly Lipatov's avatar
Vitaly Lipatov committed
38