summaryrefslogtreecommitdiff
path: root/parabola-keyring/Makefile
blob: 3128319d12266df16b93e77bb901b970f74b0d52 (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=20121012

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/

.PHONY: install uninstall dist upload