Since updates happen very commonly, you may use the following script to automatically update the pkgbuild file. Maintainer may also adapt the script and run with a cronjob daily to update it automatically
#! /bin/bash
decodeURL() { printf "%b\n" "$(sed 's/+/ /g; s/%\([0-9a-f][0-9a-f]\)/\\x\1/gi;')"; }
newver=$(decodeURL <<< $(curl -sI 'https://www.zotero.org/download/client/dl?platform=linux-x86_64&channel=beta' | grep "^location" | sed -E "s/.*beta\/(.*)\/.*/\1/g"))
sed "s/^_pkgver.*/_pkgver=$newver/" -i PKGBUILD
updpkgsums
makepkg -si
Pinned Comments