Skip to content

Commit a74f52c

Browse files
committed
make aur update script to handle sha updates
1 parent 5153f9e commit a74f52c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ lint:
3333
shellcheck -s bash $(PROG).bash
3434

3535
aur:
36-
cd aur && makepkg --printsrcinfo > .SRCINFO
36+
./update-aur.sh
3737

3838
aur-push:
3939
git submodule foreach 'git push'

update-aur.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
VERSION=$(git tag --list "v*" | tail -n1)
4+
5+
URL="https://github.com/ibizaman/pass-ssh/archive/$VERSION.tar.gz"
6+
7+
SHA=$(curl --location --silent "$URL" | sha512sum | cut -d' ' -f1)
8+
9+
cd aur || exit 1
10+
11+
sed -i "s/sha512sums.*$/sha512sums=('$SHA')/" PKGBUILD || exit 1
12+
13+
makepkg --printsrcinfo > .SRCINFO || exit 1

0 commit comments

Comments
 (0)