Makefile 848 Bytes
Newer Older
Christian Hesse's avatar
Christian Hesse committed
1
V=20191011
Pierre Schmitz's avatar
Pierre Schmitz committed
2
3
4
5

PREFIX = /usr/local

install:
6
	install -dm755 $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
7
8
9
	install -m0644 archlinux.gpg $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
	install -m0644 archlinux-trusted $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
	install -m0644 archlinux-revoked $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
Pierre Schmitz's avatar
Pierre Schmitz committed
10
11

uninstall:
12
	rm -f $(DESTDIR)$(PREFIX)/share/pacman/keyrings/archlinux{.gpg,-trusted,-revoked}
13
	rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
Pierre Schmitz's avatar
Pierre Schmitz committed
14
15
16
17
18
19

dist:
	git archive --format=tar --prefix=archlinux-keyring-$(V)/ $(V) | gzip -9 > archlinux-keyring-$(V).tar.gz
	gpg --detach-sign --use-agent archlinux-keyring-$(V).tar.gz

upload:
Pierre Schmitz's avatar
Pierre Schmitz committed
20
	scp archlinux-keyring-$(V).tar.gz archlinux-keyring-$(V).tar.gz.sig repos.archlinux.org:/srv/ftp/other/archlinux-keyring/
Pierre Schmitz's avatar
Pierre Schmitz committed
21
22

.PHONY: install uninstall dist upload