summarylogtreecommitdiffstats
path: root/update.sh
blob: 3498fcad693ed1718a2dc82884c754ada18ab4eb (plain)
1
2
3
4
5
6
#!/bin/bash

ver=$(pacman -Ss linux | sed -rn 's/^core\/linux ([0-9]+(\.[0-9]+)*\.arch[0-9]+).* \[installed\]/\1/p')
sed -i "s/pkgver=.*$/pkgver=$ver/" PKGBUILD
updpkgsums
makepkg --printsrcinfo > .SRCINFO