Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/Makefile
blob: e4b3baa16eb384b08b7beaa2ca5f6c041059ecc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PREFIX = /usr/local
V=$(shell git describe --exact-match)

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

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

dist:
	git archive --format=tar --prefix=archlinux32-keyring-$(V)/ $(V) | gzip -9 > archlinux32-keyring-$(V).tar.gz
	gpg --detach-sign --local-user release@archlinux32.org --use-agent archlinux32-keyring-$(V).tar.gz

upload:
	scp archlinux32-keyring-$(V).tar.gz archlinux32-keyring-$(V).tar.gz.sig sources.archlinux32.org:httpdocs/sources/

.PHONY: install uninstall dist upload