summaryrefslogtreecommitdiff
path: root/parabola-keyring/Makefile
blob: ce917e52eb0ad1b113ea2815452e8ab7efbf4abf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
V=20140528

PREFIX = /usr/local

install:
	install -dm755 $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
	install -m0644 parabola{.gpg,-trusted,-revoked} $(DESTDIR)$(PREFIX)/share/pacman/keyrings/

uninstall:
	rm -f $(DESTDIR)$(PREFIX)/share/pacman/keyrings/parabola{.gpg,-trusted,-revoked}
	rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/pacman/keyrings/

dist:
	mkdir -pv parabola-keyring-$(V)/
	cp -v Makefile parabola.gpg parabola-revoked parabola-trusted parabola-keyring-$(V)/
	bsdtar czf parabola-keyring-$(V).tar.gz parabola-keyring-$(V)/
	gpg --detach-sign --use-agent parabola-keyring-$(V).tar.gz
	rm -rv parabola-keyring-$(V)/

upload:
	scp parabola-keyring-$(V).tar.gz parabola-keyring-$(V).tar.gz.sig parabola:public/other/parabola-keyring

.PHONY: install uninstall dist upload