librewolf.sh 755 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=librewolf
SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6 7 8 9
DESCRIPTION="LibreWolf - a custom version of Firefox, focused on privacy, security and freedom"

. $(dirname $0)/common.sh

10 11
arch=x86_64

12 13 14
pkgtype=$(epm print info -p)
case $pkgtype in
    rpm)
15
        PKG="https://rpm.librewolf.net/pool/librewolf$VERSION.rpm"
16 17
        ;;
    deb)
18
        PKG="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
19 20 21 22 23
        ;;
    *)
        fatal "Package target $pkgtype is not supported yet"
        ;;
esac
24

25 26 27
case "$(epm print info -s)" in
  alt)
      # uses old glibc needed for ALT p10
28
      PKG="https://deb.librewolf.net/pool/focal/librewolf-$VERSION$arch.deb"
29 30 31 32
      epm install --repack $PKG
      exit
      ;;
esac
33

34
epm install "$PKG"