blob: 0513324eb012a40bffde5908308be42ffb1bf262 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
VERSION=`wget -O - https://api.github.com/repos/mwarning/Kadnode/releases/latest | grep tarball_url | sed -e 's/.\+\/v\(.\+\)",/\1/g'`
wget -c https://github.com/mwarning/KadNode/archive/v${VERSION}.tar.gz
MD5=`md5sum "v$VERSION.tar.gz" | awk '{ print $1 }'`
cat PKGBUILD \
| sed -e "s/\(pkgver=\).\+/\1$VERSION/" \
| sed -e "s/\(md5sums=('\).\+/\1$MD5')/" \
> PKGBUILD_NEW
mv PKGBUILD_NEW PKGBUILD
makepkg --printsrcinfo > .SRCINFO
|