From a092814806e4ab9afe022820d59d692e9f54b7e2 Mon Sep 17 00:00:00 2001
From: Ian Douglas Scott <ian@iandouglasscott.com>
Date: Tue, 25 Apr 2017 11:27:53 -0700
Subject: [PATCH] Create package metadata file

---
 cook.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cook.sh b/cook.sh
index 36549d991..b5df2c45b 100755
--- a/cook.sh
+++ b/cook.sh
@@ -195,10 +195,14 @@ function op {
             rm -rfv stage
             ;;
         tar)
+            mkdir -p stage/etc/pkg.d
+            echo "name = \"$1\"" > "stage/etc/pkg.d/$1.toml"
+            echo "version = \"$(op $1 version)\"" >> "stage/etc/pkg.d/$1.toml"
+            echo "target = \"$TARGET\"" >> "stage/etc/pkg.d/$1.toml"
             $ROOT/pkgutils/target/release/pkg create stage
             ;;
         untar)
-            rm -rfv stage.tar
+            rm -rfv stage.tar stage.sig
             ;;
         publish)
             mkdir -p "$REPO"
-- 
GitLab