geogebra.sh 1.05 KB
Newer Older
1 2
#!/bin/sh

3
PKGNAME=geogebra-classic
4
SUPPORTEDARCHES="x86_64 x86"
5
VERSION="$2"
6
DESCRIPTION="Geogebra 6 from the official site"
7
URL="https://wiki.geogebra.org/en/Reference:GeoGebra_Installation"
8 9 10

. $(dirname $0)/common.sh

11
arch=$(epm print info --distro-arch)
12 13 14 15 16 17
case $arch in
    x86_64|amd64)
        arch=$arch ;;
    i686|i586|i386)
        arch=i386 ;;
    *)
18
        fatal "Unsupported arch $arch for $(epm print info -d)"
19 20
esac

21
pkgtype="$(epm print info -p)"
22 23

case $pkgtype in
24 25 26
    #deb)
    #    epm install "https://www.geogebra.net/linux/pool/main/g/geogebra-classic/$(epm print constructname $PKGNAME "$VERSION" $arch)"
    #    ;;
27
    rpm)
28
        #PKGURL="https://www.geogebra.net/linux/rpm/$arch/$(epm print constructname $PKGNAME "$VERSION" $arch)"
29
        #http://www.geogebra.net/linux/rpm/x86_64/geogebra-classic-6.0.666.0-202109211234.x86_64.rpm
30
        PKGURL="ipfs://Qmc6KzDcverDKJptZd6ffJMqyYbKKcuwdHitB6EAEw2C6n?filename=geogebra-classic-6.0.666.0-202109211234.x86_64.rpm"
31 32 33 34 35
        ;;
    *)
        fatal "Unsupported $pkgtype"
        ;;
esac
36

37
install_pkgurl