#!/bin/shPKGNAME=refindSUPPORTEDARCHES="x86_64"VERSION="$2"DESCRIPTION="An EFI boot manager utility"URL="https://sourceforge.net/projects/refind"TIPS="Run epm play refind=<version> to install some specific version".$(dirname$0)/common.shif["$VERSION"="*"];thenVERSION=$(eget -O- https://sourceforge.net/projects/refind/best_release.json | sed-e's|.*refind-bin-\([^"]*\)\.zip.*|\1|')fipkgtype="$(epm print info -p)"case$pkgtypeindeb)PKGURL="https://sourceforge.net/projects/refind/files/$VERSION/refind_$VERSION-1_amd64.deb/download";;*)PKGURL="https://sourceforge.net/projects/refind/files/$VERSION/refind-$VERSION-1.x86_64.rpm/download";;esacinstall_pkgurl