blob: 82a1609693da437c030c39a9c08998d844a28d29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env bash
VERSION=5.0.19
sed -r "s/pkgver=.*/pkgver=$VERSION/" -i PKGBUILD
# download package and let it fail
makepkg --install 2>/dev/null
HASH=`sha256sum jcloisterzone-$VERSION.deb | awk -F ' ' '{print $1}'`
sed -r "s/sha256sums=.*/sha256sums=('$HASH')/" -i PKGBUILD
makepkg --printsrcinfo > .SRCINFO
git add .SRCINFO PKGBUILD
|