blob: f2e72b8b91112e1e5110e23739e3b640a0cfa33e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
source PKGBUILD
_version=$(git ls-remote --tags --refs --sort="version:refname" ${url}.git | tail -n1)
_version=${_version##*/}
_version=${_version%%-*}
_version=${_version//v/}
echo ${_version}
echo "updating checksums and version for PKGBUILDs"
sed -i "s/^pkgver=.*/pkgver='${_version}'/" PKGBUILD
updpkgsums
echo "creating .SRCINFO"
makepkg --printsrcinfo > .SRCINFO
#sha256sum skywire-scripts.tar.gz
echo "don't forget to increment pkgrel if you edited the PKGBUILD"
source PKGBUILD && echo "pkgver=${pkgver}" && echo "pkgrel=${pkgrel}"
echo
echo "git add -f PKGBUILD .SRCINFO updates.sh"
echo 'git commit -m " "'
|