1 2 3 4 5 6
#!/usr/bin/env sh makepkg --printsrcinfo \ | sed 's#^\(pkg\(base\|name\)\) = .*$#\1 = openttd-version#g' \ | tee .SRCINFO