28 lines
1.1 KiB
Makefile
28 lines
1.1 KiB
Makefile
V=20201208
|
|
|
|
PREFIX = /usr/local
|
|
|
|
install:
|
|
install -dm755 $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
|
|
install -dm755 $(DESTDIR)$(PREFIX)/share/licenses/ayae-keyring/
|
|
install -m0644 ayae{.gpg,-trusted,-revoked} $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
|
|
install -m0644 legalcode.txt $(DESTDIR)$(PREFIX)/share/licenses/ayae-keyring/
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(PREFIX)/share/pacman/keyrings/ayae{.gpg,-trusted,-revoked}
|
|
rm -f $(DESTDIR)$(PREFIX)/share/licenses/ayae-keyring/legalcode.txt
|
|
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
|
|
rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/licenses/ayae-keyring/
|
|
|
|
dist:
|
|
mkdir -pv ayae-keyring-$(V)/
|
|
cp -v Makefile ayae.gpg ayae-revoked ayae-trusted legalcode.txt ayae-keyring-$(V)/
|
|
bsdtar capf ayae-keyring-$(V).tar.lz ayae-keyring-$(V)/
|
|
gpg --detach-sign --use-agent ayae-keyring-$(V).tar.lz
|
|
rm -rv ayae-keyring-$(V)/
|
|
|
|
upload:
|
|
rsync -av -e 'ssh -p 51000' --progress ayae-keyring-$(V).tar.lz{,.sig} repo@repo.ayae.dev:/srv/repo/sources/ayae-keyring
|
|
|
|
.PHONY: install uninstall dist upload
|