summarylogtreecommitdiffstats
path: root/update.fish
blob: 9786d74012c57328d02cfbfc7d8faed80c2e95f2 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env fish

set -l package_version $argv[1]
set -l hash (string sub -l 64 (curl -L https://github.com/r-darwish/alma/archive/v$package_version.tar.gz | sha256sum))

sed -E "s/sha256sums=.*\$/sha256sums=\('$hash'\)/g" -i PKGBUILD
sed -E "s/pkgver=.*\$/pkgver=$package_version/g" -i PKGBUILD
makepkg --printsrcinfo > .SRCINFO
makepkg