#!/bin/sh source ../.util.sh #ver=$(curl -s https://download.nextcloud.com/server/releases/ | htmlq --attribute href a | pcregrep -o1 'nextcloud-([\d|\.]+)\.tar\.bz2$' | sort -V | tail # -n 1) #echo $ver #sed -i "s/pkgver=.*/pkgver=${ver}/" PKGBUILD update_github_tag nextcloud/server update_pkg