1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/usr/bin/env sh set -e version=$1 script_dir=$(dirname -- "$(readlink -f "$0")") cwd=$(pwd) cd "$script_dir" sed -i -E 's/^pkgver=.+$/pkgver='"$version"'/' PKGBUILD updpkgsums makepkg --printsrcinfo > .SRCINFO git add PKGBUILD .SRCINFO git commit -m "Bump to v$version" git push cd "$cwd"