Skip to content

Commit e5aaf8c

Browse files
philcliffordflexiondotorg
authored andcommitted
fix(pdfsam-visual): package naming changed
For now take belt and braces approach in case this reverts
1 parent ace3d19 commit e5aaf8c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

01-main/packages/pdfsam-visual

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@ DEFVER=1
22
ARCHS_SUPPORTED="amd64"
33
get_github_releases "torakiki/pdfsam-visual-public" latest
44
if [ "${ACTION}" != "prettylist" ]; then
5-
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v -e nightly -e beta -e alpha | cut -d'"' -f4)"
5+
local ARCH_VER
6+
case ${HOST_ARCH} in
7+
amd64) ARCH_VER=x64;;
8+
esac
9+
10+
URL="$(grep "browser_download_url.*${ARCH_VER}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v -e nightly -e beta -e alpha | cut -d'"' -f4)"
11+
if [ -z $URL] ;then
12+
URL="$(grep "browser_download_url.*${HOST_ARCH}\.deb\"" "${CACHE_FILE}" | grep -m 1 -v -e nightly -e beta -e alpha | cut -d'"' -f4)"
13+
fi
614
VERSION_PUBLISHED="$(echo "${URL}" | cut -d'/' -f8 | tr -d v)"
715
fi
816
PRETTY_NAME="PDFsam Visual"

0 commit comments

Comments
 (0)