summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-01-01 11:38:36 +0100
committerErich Eckner <git@eckner.net>2022-01-01 11:38:36 +0100
commit130310519e961be6b4391d406ac1ae94d905cb01 (patch)
treebe589c02a8f7dccc1387392e38c19f5bcd2bc22b /Makefile
downloadarchlinuxewe-keyring-130310519e961be6b4391d406ac1ae94d905cb01.tar.xz
initial version20220101
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..73403ab
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+PREFIX = /usr/local
+V=$(shell git describe --exact-match)
+
+install:
+ install -dm755 $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
+ install -m0644 archlinuxewe{.gpg,-trusted,-revoked} $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
+
+uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/share/pacman/keyrings/archlinuxewe{.gpg,-trusted,-revoked}
+ rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
+
+dist:
+ git archive --format=tar --prefix=archlinuxewe-keyring-$(V)/ $(V) | gzip -9 > archlinuxewe-keyring-$(V).tar.gz
+ gpg --detach-sign --use-agent archlinuxewe-keyring-$(V).tar.gz
+
+upload:
+ scp archlinuxewe-keyring-$(V).tar.gz archlinuxewe-keyring-$(V).tar.gz.sig archlinuxewe@eckner.net:
+
+.PHONY: install uninstall dist upload