blob: 59a20197a7d2391b80e663671e134d20bbb2df05 (
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
|
all: srcinfo rebuild
srcinfo: .SRCINFO
install: rebuild
sudo pacman -U "$$(awk -F= '{k[$$1]=$$2}END{print k["pkgname"]"-"k["pkgver"]"-"k["pkgrel"]}' PKGBUILD)"-*.pkg.*
rebuild: src
makepkg -ef
clean:
rm -f -- *.pkg.*
rm -rf -- pkg
distclean: clean
rm -f -- .SRCINFO
rm -rf -- src
src: PKGBUILD
makepkg -o
# src needed here to update pkgver
.SRCINFO: PKGBUILD src
makepkg --printsrcinfo > $@
.PHONY: all rebuild install clean distclean srcinfo
|