#!/bin/shPKGNAME=naps2SUPPORTEDARCHES="x86_64 aarch64"VERSION="$2"DESCRIPTION="Scan documents to PDF and more, as simply as possible."URL="https://github.com/cyanfish/naps2/releases/".$(dirname$0)/common.sharch="$(epm print info -a)"case"$arch"inx86_64)arch=x64;; aarch64)arch=arm64;;esacpkgtype=$(epm print info -p)if["$pkgtype"=="deb"]||["$pkgtype"=="rpm"];thenpkgtype="$pkgtype"elsepkgtype="deb"fiPKGURL=$(eget --list--latest https://github.com/cyanfish/naps2/releases "$PKGNAME-$VERSION-linux-$arch.$pkgtype")install_pkgurl