sweethome3d.sh 591 Bytes
Newer Older
1
#!/bin/sh
2 3

PKGNAME=SweetHome3D
4
SUPPORTEDARCHES="x86_64 x86"
5 6 7 8
DESCRIPTION=''

. $(dirname $0)/common.sh

9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

arch="$($DISTRVENDOR -a)"
case "$arch" in
    x86_64)
        arch=x64
        ;;
    x86)
        ;;
    *)
        fatal "$arch arch is not supported"
        ;;
esac

# TODO: get url from https://sourceforge.net/projects/sweethome3d/best_release.json (is it client system dependend??)
# see get_github_urls in eget
VERSION=6.6
PKG="http://download.sourceforge.net/project/sweethome3d/SweetHome3D/SweetHome3D-$VERSION/SweetHome3D-$VERSION-linux-$arch.tgz"

epm --repack install "$PKG"