mkcalibre: get architecture better

This commit is contained in:
Phantop 2023-12-17 14:32:21 -05:00
parent dbcf537960
commit 4a82495225

View file

@ -3,8 +3,8 @@
part0
base=https://download.calibre-ebook.com
LINK="$(curl "$base" | tail -n 1 | cut -d\" -f2)"
LINK="$(curl "$base/$LINK" | tail -n 1 | cut -d\" -f4)"
LINK="$base/$LINK$(curl "$base/$LINK" | tail -n 1 | cut -d\" -f18)"
LINK="$(curl "$base/$LINK" | tail -n 1 | cut -d\" -f4 | tr -d /)"
LINK="$base/$LINK/calibre-$LINK-$(uname -m).txz"
unxz
appa
part9