blob: 593667676ffe53846c13bfeb3e5c1ecc6f42b0d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
#
# Update the PKGBUILD with the lastest release
VERSION=`curl -fsSL https://get.please.build/latest_version`
SHA256URL="https://get.please.build/linux_amd64/${VERSION}/please_${VERSION}.tar.gz.sha256"
SHA256SUM=`curl -fsSL ${SHA256URL} | cut -d ' ' -f1`
sed -i -e "s/pkgver=.*/pkgver=${VERSION}/" PKGBUILD
sed -i -e "s/sha256sums_x86_64=.*/sha256sums_x86_64=(\"${SHA256SUM}\")/" PKGBUILD
git commit -m "Updating to ${VERSION}" ./PKGBUILD
|