add automatic packaging script

This commit is contained in:
Edward Shen 2019-12-31 20:58:42 -05:00
parent 68099c74fb
commit a16e874830
Signed by: edward
GPG key ID: F350507060ED6C90

10
aux/update_pkgbuild Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
mkdir -p out
# shellcheck disable=SC2207
SHASUM=($(curl -sL "https://github.com/edward-shen/bunbun/archive/$1.tar.gz" | sha512sum))
HASH="${SHASUM[0]}"
sed -i "s/^pkgver=.*$/pkgver=$1/; s/sha512sums=('\w*/sha512sums=('$HASH/" PKGBUILD