eagle.sh 737 Bytes
Newer Older
1 2 3
#!/bin/sh

PKGNAME=Autodesk_EAGLE
4
SUPPORTEDARCHES="x86_64"
5
DESCRIPTION="EAGLE (EDA software) from the official site"
6

7
. $(dirname $0)/common.sh
8 9 10


VERSION=9.6.2
11
IPFSHASH=Qmd38jJnTnUMUeJuKSDBGesqXF3SxEahUVZc6NUPyMKgj1
12
PKGURL="https://trial2.autodesk.com/NET17SWDLD/2017/EGLPRM/ESD/Autodesk_EAGLE_${VERSION}_English_Linux_64bit.tar.gz"
13

14
# use temp dir
15
PKGDIR="$(mktemp -d)"
16
trap "rm -fr $PKGDIR" EXIT
17
cd $PKGDIR || fatal
18

19
if ! epm tool eget $PKGURL ; then
20 21
    echo "It is possible you are blocked from USA, trying get from IPFS ..."
    pkgname=$(basename $PKGURL)
22
    epm tool eget -O $pkgname http://dhash.ru/ipfs/$IPFSHASH || fatal "Can't get $pkgname from IPFS."
23
fi
24

25
epm install --repack *.tar.gz || exit
26

27 28 29 30 31
echo
echo "
Run via
$ eagle
"