summarylogtreecommitdiffstats
path: root/update.sh
blob: 0963ef4c8960a94cbbf81ce6c93c072e20f8943d (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

lastVer=$(curl "https://registry.npmjs.com/better-commits" | jq -r '."dist-tags"."latest"' )
sed -i "/pkgver/s/[0-9]\+\.[0-9]\+\.[0-9]\+/${lastVer}/" ./PKGBUILD
sum=$(makepkg -g)
sed -i "s/sha256sums=.*\$/${sum}/" ./PKGBUILD
makepkg --printsrcinfo > .SRCINFO
git commit -a