diff --git a/automation_tools/automation_task_list.cfg b/automation_tools/automation_task_list.cfg
index 289eafed..37fd1d7d 100644
--- a/automation_tools/automation_task_list.cfg
+++ b/automation_tools/automation_task_list.cfg
@@ -9,7 +9,8 @@ hash^XEMUHDDHASHPLACEHOLDER^https://github.com/mborgerson/xemu-hdd-image/release
 hash^VITA3KSHAPLACEHOLDER^https://github.com/Vita3K/Vita3K/releases/download/continuous/ubuntu-latest.zip
 hash^RANIGHTLYCORESPLACEHOLDER^https://buildbot.libretro.com/nightly/linux/x86_64/RetroArch_cores.7z
 hash^GYRODSUSHAPLACEHOLDER^https://github.com/kmicki/SteamDeckGyroDSU/releases/latest/download/SteamDeckGyroDSUSetup.zip
-#hash^RETRODECKMAMEPLACEHOLDER^
+hash^RETRODECKMAMEPLACEHOLDER^https://github.com/XargonWan/RetroDECK-MAME/archive/refs/tags/$(curl -s https://api.github.com/repos/XargonWan/RetroDECK-MAME/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')-Artifact.tar.gz
+url^RETRODECKMAMEPLACEHOLDERURL^https://github.com/XargonWan/RetroDECK-MAME/archive/refs/tags/$(curl -s https://api.github.com/repos/XargonWan/RetroDECK-MAME/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')-Artifact.tar.gz
 latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main
 outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid
 branch^THISBRANCH
diff --git a/automation_tools/pre_build_automation.sh b/automation_tools/pre_build_automation.sh
index 0c47f854..9c363c96 100755
--- a/automation_tools/pre_build_automation.sh
+++ b/automation_tools/pre_build_automation.sh
@@ -44,9 +44,10 @@ do
     elif [[ "$action" == "hash" ]]; then
       echo
       echo "Placeholder text: $placeholder"
-      echo "URL to hash: $url"
+      calculated_url=$(eval echo "$url")  # in case the url has to be calculated from an expression
+      echo "URL to hash: $calculated_url"
       echo
-      hash=$(curl -sL "$url" | sha256sum | cut -d ' ' -f1)
+      hash=$(curl -sL "$calculated_url" | sha256sum | cut -d ' ' -f1)
       echo "Hash found: $hash"
       /bin/sed -i 's^'"$placeholder"'^'"$hash"'^' $rd_manifest
     elif [[ "$action" == "latestcommit" ]]; then
@@ -77,6 +78,14 @@ do
       echo "Information being injected: $(cat $url)"
       echo
       /bin/sed -i 's^'"$placeholder"'^'"$(cat $url)"'^' $rd_manifest
+    elif [[ "$action" == "url" ]]; then
+      # this is used to calculate a dynamic url
+      echo
+      echo "Placeholder text: $placeholder"
+      calculated_url=$(eval echo "$url")
+      echo "Information being injected: $calculated_url"
+      echo
+      /bin/sed -i 's^'"$placeholder"'^'"$calculated_url"'^' $rd_manifest
     fi
   fi
 done < "$automation_task_list"
diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml
index a24e3024..db6797fc 100644
--- a/net.retrodeck.retrodeck.yml
+++ b/net.retrodeck.retrodeck.yml
@@ -1335,14 +1335,14 @@ modules:
   
   # MAME - Start
 
-  # - name: retrodeck-mame
-  #   buildsystem: simple
-  #   build-commands:
-  #     - cp -rn files/* /app
-  #   sources:
-  #   - type: archive
-  #     url: 
-  #     sha256: RETRODECKMAMEPLACEHOLDER
+  - name: retrodeck-mame
+    buildsystem: simple
+    build-commands:
+      - cp -rn files/* /app
+    sources:
+    - type: archive
+      url: RETRODECKMAMEPLACEHOLDERURL
+      sha256: RETRODECKMAMEPLACEHOLDER
 
   # MAME - End