From 5e745da82ebc0711e398abb898043be103dedc8f Mon Sep 17 00:00:00 2001
From: MggMuggins <mggmugginsmc@gmail.com>
Date: Fri, 1 Jun 2018 21:59:07 -0500
Subject: [PATCH] libsodium recipe

Port Libsodium to redox
---
 recipes/libsodium/recipe.sh | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 recipes/libsodium/recipe.sh

diff --git a/recipes/libsodium/recipe.sh b/recipes/libsodium/recipe.sh
new file mode 100644
index 000000000..a6cc951e9
--- /dev/null
+++ b/recipes/libsodium/recipe.sh
@@ -0,0 +1,36 @@
+VERSION=1.0.16
+TAR=https://github.com/jedisct1/libsodium/archive/${VERSION}.tar.gz
+
+function recipe_version {
+    echo "$VERSION"
+    skip=1
+}
+
+function recipe_update {
+    echo "skipping update"
+    skip=1
+}
+
+function recipe_build {
+    # Disclaimer: No idea what I'm doing
+    ./autogen.sh
+    ./configure --host=${HOST} --prefix='/'
+    make
+    skip=1
+}
+
+function recipe_test {
+    echo "skipping test"
+    skip=1
+}
+
+function recipe_clean {
+    make clean
+    skip=1
+}
+
+function recipe_stage {
+    dest="$(realpath $1)"
+    make DESTDIR="$dest" install
+    skip=1
+}
-- 
GitLab