add automatic packaging script
This commit is contained in:
parent
68099c74fb
commit
a16e874830
1 changed files with 10 additions and 0 deletions
10
aux/update_pkgbuild
Executable file
10
aux/update_pkgbuild
Executable 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
|
Loading…
Reference in a new issue