summarylogtreecommitdiffstats
path: root/Makefile
blob: d98ad5acca65aeefd72a4f7b495d5146ccaee381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
nam = $(shell sed -n 's/^pkgname=//p' PKGBUILD)
src = PKGBUILD
inf = .SRCINFO
pkg = $(shell ls -v $(nam)*.pkg.tar* 2>/dev/null | tail -1)

all: sum $(inf) check

$(inf): $(src)
	makepkg --printsrcinfo >$@

check: $(src)
	namcap $^
ifneq ($(strip $(pkg)),)
	namcap $(pkg)
endif

sum: $(src)
	updpkgsums

clean:
	rm -rf $(inf) $(nam)-* *.tar.xz *.tar.gz pkg/ src/ *.part

# vim: se ts=4: