add Added Files:
[hdw-repos/packages.git] / demian / spim / spim
diff --git a/demian/spim/spim b/demian/spim/spim
new file mode 100755 (executable)
index 0000000..0fb7032
--- /dev/null
@@ -0,0 +1,24 @@
+# HDW Linux spim
+#
+# [M] Jonathan J. Vargas demian@hackdaworld.dyndns.org
+# [I] A MIPS R2000/R3000 assembler simulator very powerful to learn MIPS code.
+# [V] 6.4
+# [S] 3 4
+# [D] spim.tar.gz http://www.cs.wisc.edu/~larus/SPIM/
+
+
+build_main() {
+    make spim
+    make xspim
+    make install BIN_DIR=/usr/bin spim
+}
+
+post_install(){
+    [ ! -d /usr/share/doc/spim ] && mkdir -v /usr/share/doc/spim
+    cp -v spim.html /usr/share/doc/spim
+    cp -v trap.handler /usr/etc/spim-trap.handler
+    echo installing man pages
+    cp -v *.man /usr/share/man/man1/
+    
+    echo done
+}