]> git.draconx.ca Git - homepage.git/blobdiff - Rules
Update GPG instructions for packages.
[homepage.git] / Rules
diff --git a/Rules b/Rules
index 26bcb40ac7b1a8f0dbe86ba9f22b5edbc44d6300..7acf71db99c727cf4afc93c38f0c4f7f1a89fc2e 100644 (file)
--- a/Rules
+++ b/Rules
@@ -1,6 +1,6 @@
 #!/usr/bin/env ruby
 #
 #!/usr/bin/env ruby
 #
-# Copyright © 2018-2020 Nick Bowler
+# Copyright © 2018-2022 Nick Bowler
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -68,6 +68,8 @@ preprocess do
 
         @items.create("", attrs, "#{dir}/index.lst")
     end
 
         @items.create("", attrs, "#{dir}/index.lst")
     end
+
+    create_wkd_items(@items["/pubring.gpg"])
 end
 
 postprocess do
 end
 
 postprocess do
@@ -216,6 +218,19 @@ compile '/**/*.scss' do
     write @item.identifier.without_ext + '.css'
 end
 
     write @item.identifier.without_ext + '.css'
 end
 
+compile '/gpg/*' do
+    filter :wkd_export, armor: true
+    write "/pubring/" + @item.identifier.components.last + ".asc"
+end
+
+compile '/gpg/*', rep: :hu do
+    filter :wkd_export
+    write "/pubring/wkd/" + @item[:wkd_hash]
+end
+
+compile '/*.gpg' do
+end
+
 compile '/**/*.svg' do
     filter :scour, comment_stripping: true
     write @item.identifier.to_s
 compile '/**/*.svg' do
     filter :scour, comment_stripping: true
     write @item.identifier.to_s