summarylogtreecommitdiffstats
path: root/Makefile
blob: 6ce0998f561240628d38d1394a25b0d872eac333 (plain)
1
2
3
4
5
6
7
8
9
10
PKGVER = 0.6.4
PKGREL = 1

.PHONY: codegen
codegen:
	@sed -e 's/{{PKGVER}}/$(PKGVER)/g' \
		-e 's/{{PKGREL}}/$(PKGREL)/g' \
		PKGBUILD.tmpl > PKGBUILD
	@sed -i "s/{{MD5SUM}}/$$(makepkg -g | grep -Po '[0-9a-f]{32}')/g" PKGBUILD
	@makepkg --printsrcinfo > .SRCINFO