summarylogtreecommitdiffstats
path: root/Makefile
blob: 8a02706c1167d8eff7d74b4a88033844cc8cc6d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
all: clean build git install

clean:
	rm -r src pkg || true

geninteg:
	sed -i '/.*sums=(/,$$d' PKGBUILD
	makepkg --geninteg >> PKGBUILD

srcinfo:
	makepkg --printsrcinfo > .SRCINFO

makepkg:
	makepkg -s

build: geninteg srcinfo makepkg

git: git_add git_commit

git_add:
	git add PKGBUILD .SRCINFO

git_commit: VERSION = $(shell grep pkgver .SRCINFO | cut -d '=' -f 2 | tr -d '[:space:]')
git_commit:
	git commit -m "Update to ${VERSION}"

install:
	makepkg --install