From 24d3c70aca861c16f572765671005e95f4b1c845 Mon Sep 17 00:00:00 2001
From: Ian Douglas Scott <ian@iandouglasscott.com>
Date: Wed, 21 Jun 2017 13:18:28 -0700
Subject: [PATCH] Initial recipe for cargo

---
 recipes/cargo/recipe.sh | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 recipes/cargo/recipe.sh

diff --git a/recipes/cargo/recipe.sh b/recipes/cargo/recipe.sh
new file mode 100644
index 000000000..a6faa2c79
--- /dev/null
+++ b/recipes/cargo/recipe.sh
@@ -0,0 +1,22 @@
+GIT=https://github.com/ids1024/cargo.git
+BRANCH=redox
+
+function recipe_build {
+    if [ -d openssl-redox ]
+    then
+        git -C openssl-redox pull
+    else
+        git clone https://github.com/ids1024/openssl.git -b redox --depth 1 openssl-redox
+    fi
+
+    rm -rf openssl-prefix
+    mkdir openssl-prefix
+
+    pushd openssl-redox
+        ./Configure no-shared no-dgram redox-x86_64 --prefix="$PWD/../openssl-prefix"
+	make -j"$(nproc)"
+	make install
+    popd
+
+    export OPENSSL_DIR=$PWD/openssl-prefix
+}
-- 
GitLab