lithium.sh 836 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh

pkgtype=$(epm print info -p)
case $pkgtype in
    rpm)
        PKGNAME=lithium_ecad
        ;;
    *)
        PKGNAME=lithium-ecad
        ;;
esac

SUPPORTEDARCHES="x86_64"
14
VERSION="$2"
15 16 17 18 19 20 21
DESCRIPTION="CAD of printed circuit boards"

. $(dirname $0)/common.sh


case $pkgtype in
    rpm)
22
        mask="$PKGNAME-$VERSION*.x86_64.rpm"
23 24
        ;;
    *)
25
        mask="$PKGNAME_$VERSION*_amd64.deb"
26 27 28 29 30 31 32 33 34 35 36 37 38 39
        ;;
esac

repack=''
case $(epm print info -s) in
    alt)
        repack="--repack"
esac

# https://www.lecad.ru/?download=&kcccount=https://www.lecad.ru/wp-content/uploads/lithium-ecad_1.7.5_amd64.deb
# https://www.lecad.ru/?download=&kcccount=https://www.lecad.ru/wp-content/uploads/lithium_ecad-1.7.5-0.x86_64.rpm
PKGURL="$(eget --list --latest https://www.lecad.ru/actual-version/ "$mask")"

epm $repack install "$PKGURL"