librewolf.sh 1.09 KB
Newer Older
1 2 3
#!/bin/sh

PKGNAME=librewolf
4
SUPPORTEDARCHES="x86_64 aarch64"
5
VERSION="$2"
6
DESCRIPTION="LibreWolf - a custom version of Firefox, focused on privacy, security and freedom"
7
URL="https://librewolf.net/"
8 9 10

. $(dirname $0)/common.sh

11 12
arch=x86_64

13 14 15 16 17 18 19 20 21 22

if [ "$(epm print info -a)" = "aarch64" ]; then
    arch="arm64"
fi

if [ "$VERSION" = "*" ] ; then
    # Get latest version from vendor
    VERSION=$(eget --list --latest https://repo.librewolf.net/pool/ | grep -oE '[0-9]+\.[0-9]+(\.[0-9]+)?')
fi

23 24 25
pkgtype=$(epm print info -p)
case $pkgtype in
    rpm)
26 27
        # https://repo.librewolf.net/pool/librewolf-132.0-1-linux-x86_64-rpm.rpm
        PKGURL="https://repo.librewolf.net/pool/librewolf-$VERSION-[0-9]*-linux-$arch-rpm.rpm"
28 29
        ;;
    *)
30 31
        # https://repo.librewolf.net/pool/librewolf-132.0-1-linux-x86_64-deb.deb
        PKGURL="https://repo.librewolf.net/pool/librewolf-$VERSION-[0-9]*-linux-$arch-deb.deb"
32 33
        ;;
esac
34

35
if ! is_glibc_enough 2.35 ; then
36
    # use deb package for old glibc
37
    PKGURL="https://repo.librewolf.net/pool/librewolf-$VERSION-[0-9]*-linux-$arch-deb.deb"
38
fi
39

40
install_pkgurl