summarylogtreecommitdiffstats
path: root/Makefile
blob: 834f96fcd485da16115a860b8bbe66ec53fe7180 (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 *.tar.xz pkg/ src/ *.part

# vim: se ts=4: