diff options
author | EuAndreh <eu@euandre.org> | 2023-03-24 12:15:38 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-24 12:15:38 -0300 |
commit | c0e4b5f65fc8255a5fa338b999edca72e92cfa74 (patch) | |
tree | f281a3c7b0b39be581675cbb54b8a040bb567f95 /Makefile | |
parent | paku.lock: Split maintainer name from email (diff) | |
download | package-repository-c0e4b5f65fc8255a5fa338b999edca72e92cfa74.tar.gz package-repository-c0e4b5f65fc8255a5fa338b999edca72e92cfa74.tar.xz |
Makefile: Derive "EuAndreh.key" from paku.lock file
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -12,15 +12,12 @@ -all: EuAndreh.key guix nix debian homebrew src/bin/paku +all: guix nix debian homebrew src/bin/paku paku.lock: src/bin/paku Makefile touch $@ -EuAndreh.key: paku.lock - gpg --armour --export eu@euandre.org > $@ - test-config-files = \ tests/internet/etc/postfix/main.cf \ @@ -30,8 +27,14 @@ test-config-files = \ derived-assets = \ $(test-config-files) \ -guix: src/org/euandre/packages.scm result-packages.sentinel \ - result-services.sentinel +guix: src/org/euandre/packages.scm channel-key.sentinel \ + result-packages.sentinel result-services.sentinel + +channel-key.sentinel: paku.lock + F="$$( perl -MJSON -0777 -E 'say $${decode_json <>}{maintainer}{name}' < paku.lock).key"; \ + ID="$$(perl -MJSON -0777 -E 'say $${decode_json <>}{maintainer}{email}' < paku.lock)"; \ + gpg --armour --export "$$ID" > "$$F" + touch $@ src/org/euandre/packages.scm: paku.lock paku guix > src/org/euandre/packages.scm @@ -113,7 +116,7 @@ upload: public clean: rm -rf \ $(derived-assets) result* .paku/ public/ debian.mk \ - src/bin/paku \ + src/bin/paku *.sentinel \ HTTP-REMOTE = 'https://euandre.org/s/package-repository' |