You need to sign in or sign up before continuing.
lithium.sh 796 Bytes
Newer Older
1 2
#!/bin/sh

Vitaly Lipatov's avatar
Vitaly Lipatov committed
3
# TODO: uses global epm here
4 5 6 7 8 9 10 11 12 13 14
pkgtype=$(epm print info -p)
case $pkgtype in
    rpm)
        PKGNAME=lithium_ecad
        ;;
    *)
        PKGNAME=lithium-ecad
        ;;
esac

SUPPORTEDARCHES="x86_64"
15
VERSION="$2"
16
DESCRIPTION="CAD of printed circuit boards"
17
URL="https://www.lecad.ru"
18 19 20 21 22

. $(dirname $0)/common.sh

case $pkgtype in
    rpm)
23
        mask="$PKGNAME-$VERSION*.x86_64.rpm"
24 25
        ;;
    *)
26
        mask="$PKGNAME_$VERSION*_amd64.deb"
27 28 29 30 31 32 33
        ;;
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")"

34
install_pkgurl