blob: 852d882c65c8a65ef080b9ba7fbb99bc4f153b2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
# bump package version (borrowed from AUR : portfolio-performance-bin.git - thx)
VERSION=$(curl -sL https://api.github.com/repos/sparrowwallet/sparrow/releases/latest | jq -r .tag_name)
echo $VERSION
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}"
|