From fe9e69d273b60a8a05b0152b9623bd152c282625 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Tue, 6 Jun 2017 19:59:59 -0600
Subject: [PATCH] Add dash recipe

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

diff --git a/recipes/dash/recipe.sh b/recipes/dash/recipe.sh
new file mode 100644
index 000000000..459a789f4
--- /dev/null
+++ b/recipes/dash/recipe.sh
@@ -0,0 +1,48 @@
+GIT=https://github.com/redox-os/dash.git
+BRANCH=redox
+
+HOST=x86_64-elf-redox
+export AR="${HOST}-ar"
+export AS="${HOST}-as"
+export CC="${HOST}-gcc"
+export CXX="${HOST}-g++"
+export LD="${HOST}-ld"
+export NM="${HOST}-nm"
+export OBJCOPY="${HOST}-objcopy"
+export OBJDUMP="${HOST}-objdump"
+export RANLIB="${HOST}-ranlib"
+export READELF="${HOST}-readelf"
+export STRIP="${HOST}-strip"
+
+function recipe_version {
+    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+    return 1
+}
+
+function recipe_update {
+    echo "skipping update"
+    return 1
+}
+
+function recipe_build {
+    ./autogen.sh
+    ./configure --host=${HOST} --prefix=/
+    make
+    return 1
+}
+
+function recipe_test {
+    echo "skipping test"
+    return 1
+}
+
+function recipe_clean {
+    make clean
+    return 1
+}
+
+function recipe_stage {
+    dest="$(realpath $1)"
+    make DESTDIR="$dest" install
+    return 1
+}
-- 
GitLab