From 3cf483f177f54e0069a0a1b0461907e021e274b0 Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Wed, 8 Oct 2025 01:43:57 -0400 Subject: [PATCH 1/3] build MAME --- get-dependencies.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/get-dependencies.sh b/get-dependencies.sh index eca7550..228ce25 100644 --- a/get-dependencies.sh +++ b/get-dependencies.sh @@ -17,7 +17,6 @@ pacman -Syu --noconfirm \ libx11 \ libxrandr \ libxss \ - mame \ pipewire-audio \ pulseaudio \ pulseaudio-alsa \ @@ -31,6 +30,22 @@ echo "Installing debloated packages..." echo "---------------------------------------------------------------" wget --retry-connrefused --tries=30 "$EXTRA_PACKAGES" -O ./get-debloated-pkgs.sh chmod +x ./get-debloated-pkgs.sh -./get-debloated-pkgs.sh --add-opengl libxml2-mini opus-mini qt6-base-mini +./get-debloated-pkgs.sh --add-opengl libxml2-mini opus-mini qt6-base-mini gdk-pixbuf2-mini + +echo "Building MAME..." +echo "---------------------------------------------------------------" +sed -i -e 's|EUID == 0|EUID == 69|g' /usr/bin/makepkg +sed -i \ + -e 's|-O2|-O3|' \ + -e 's|MAKEFLAGS=.*|MAKEFLAGS="-j$(nproc)"|' \ + -e 's|#MAKEFLAGS|MAKEFLAGS|' \ + /etc/makepkg.conf + +git clone --depth 1 https://gitlab.archlinux.org/archlinux/packaging/packages/mame.git ./mame && ( + cd ./mame + makepkg -fs --noconfirm --skippgpcheck + ls -la . + pacman --noconfirm -U ./*.pkg.tar.* +) pacman -Q mame | awk '{print $2; exit}' > ~/version From 68399c121518dd541bab26c7ee40b3f4bbdd2e3a Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Wed, 8 Oct 2025 01:48:12 -0400 Subject: [PATCH 2/3] oops --- get-dependencies.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/get-dependencies.sh b/get-dependencies.sh index 228ce25..a9097bd 100644 --- a/get-dependencies.sh +++ b/get-dependencies.sh @@ -1,7 +1,7 @@ #!/bin/sh set -ex - +ARCH="$(uname -m)" EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh" echo "Installing dependencies..." @@ -43,6 +43,7 @@ sed -i \ git clone --depth 1 https://gitlab.archlinux.org/archlinux/packaging/packages/mame.git ./mame && ( cd ./mame + sed -i -e "s|x86_64|$ARCH|" ./PKGBUILD makepkg -fs --noconfirm --skippgpcheck ls -la . pacman --noconfirm -U ./*.pkg.tar.* From 0fa1f8892723874f6f567270bdaf6b32571423d1 Mon Sep 17 00:00:00 2001 From: Samuel <36420837+Samueru-sama@users.noreply.github.com> Date: Wed, 8 Oct 2025 02:16:44 -0400 Subject: [PATCH 3/3] just in case --- get-dependencies.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/get-dependencies.sh b/get-dependencies.sh index a9097bd..7ddc72b 100644 --- a/get-dependencies.sh +++ b/get-dependencies.sh @@ -40,6 +40,7 @@ sed -i \ -e 's|MAKEFLAGS=.*|MAKEFLAGS="-j$(nproc)"|' \ -e 's|#MAKEFLAGS|MAKEFLAGS|' \ /etc/makepkg.conf +cat /etc/makepkg.conf git clone --depth 1 https://gitlab.archlinux.org/archlinux/packaging/packages/mame.git ./mame && ( cd ./mame