1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/env bash set -e export VERSION=$1 export PKGREL=${2:-1} envsubst '$VERSION $PKGREL' < PKGBUILD.tpl > PKGBUILD makepkg --geninteg >> PKGBUILD makepkg --printsrcinfo > .SRCINFO #git add -A #git commit -m "Updated to v${VERSION}" #git push