summarylogtreecommitdiffstats
path: root/update_pkg
blob: 4ad635a54f8b45a81b28a1eaf856ee2a4ba8adeb (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env ruby

new_sha = `makepkg -g`
pkgbuild = File.read("PKGBUILD").to_str.gsub(/^sha256sums=\([^\)]*\)/,new_sha.rstrip)
File.write("PKGBUILD", pkgbuild)
system("makepkg --printsrcinfo > .SRCINFO")
# puts new_sha
puts "done!"