summarylogtreecommitdiffstats
path: root/update.sh
blob: a191b81e6b397a6b2dae17ecdea8c297a6609353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
VERSION=$(curl -s https://api.github.com/repos/buchen/portfolio/releases/latest | jq -r .tag_name)

sed -i -e 's/pkgver=.*/pkgver='$VERSION'/' PKGBUILD

updpkgsums

# Check whether this changed anything
if (git diff --exit-code PKGBUILD); then
	echo "Package ${PKG} has most recent version ${VER}"
	exit 0
fi

# Update .SRCINFO
makepkg --printsrcinfo > .SRCINFO

# Commit changes
git add PKGBUILD .SRCINFO
git commit -m "feat: update to v${VERSION}"