From b6269c428f0ba5ddd901fddc9ee0783dfcd94178 Mon Sep 17 00:00:00 2001
From: Thomas Gatzweiler <mail@thomasgatzweiler.com>
Date: Sun, 9 Jul 2017 15:43:02 +0200
Subject: [PATCH] Recipe for nasm

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

diff --git a/recipes/nasm/recipe.sh b/recipes/nasm/recipe.sh
new file mode 100644
index 000000000..0aedbd04b
--- /dev/null
+++ b/recipes/nasm/recipe.sh
@@ -0,0 +1,38 @@
+VERSION=2.13.01
+TAR=http://www.nasm.us/pub/nasm/releasebuilds/$VERSION/nasm-$VERSION.tar.gz
+
+HOST=x86_64-elf-redox
+
+function recipe_version {
+    echo "$VERSION"
+    skip=1
+}
+
+function recipe_update {
+    echo "skipping update"
+    skip=1
+}
+
+function recipe_build {
+    ./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 INSTALLROOT="$dest" install
+    rm -rf "$dest"/share
+    find "$dest"/bin -exec ${HOST}-strip {} ';' 2> /dev/null
+    skip=1
+}
-- 
GitLab