summarylogtreecommitdiffstats
path: root/update_pkg
blob: db505278cbf5cc2a4c249ae296caa8a1037dafd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env ruby

# new_sha = `makepkg -g`
pkgbuild = File.readlines("PKGBUILD").map do |line|
  if line =~ /\Apkgver=/
    "pkgver=HEAD\n"
  else
    line
  end
end.join

File.write("PKGBUILD", pkgbuild)
system("makepkg --printsrcinfo > .SRCINFO")
# puts new_sha
puts "done!"