Package Details: moon-buggy 1.0.51-2

Git Clone URL: https://aur.archlinux.org/moon-buggy.git (read-only, click to copy)
Package Base: moon-buggy
Description: Moon Buggy is a simple game for the text mode
Upstream URL: http://seehuhn.de/comp/moon-buggy
Licenses: GPL2
Submitter: ilpianista
Maintainer: hamblingreen
Last Packager: hamblingreen
Votes: 34
Popularity: 0.008547
First Submitted: 2010-11-13 15:14 (UTC)
Last Updated: 2022-06-21 00:48 (UTC)

Latest Comments

Keystone commented on 2025-11-11 22:57 (UTC) (edited on 2025-11-11 23:00 (UTC) by Keystone)

Patch highscore to repair fclean:

--- highscore.c 2025-11-11 15:35:50.301876238 -0500
+++ src/moon-buggy-1.0.51/highscore.c   2025-11-11 15:36:01.517492268 -0500
@@ -318,11 +318,7 @@
     int  fd = fileno (score_file);
     long int  pos = ftell (score_file);
     if (pos != -1) {
-#if HAVE_FCLEAN
-      fclean (score_file);
-#else
       fflush (score_file);
-#endif
       ftruncate (fd, pos);
     }
   }

Patch for signal.c handlers (there is a PR up on github that does this differently):

--- signal.c    2025-11-11 15:40:21.438741437 -0500
+++ src/moon-buggy-1.0.51/signal.c  2025-11-11 15:51:45.304616414 -0500
@@ -47,7 +47,7 @@
 }

 static void
-install_signal (int signum, RETSIGTYPE (*handler) ())
+install_signal (int signum, RETSIGTYPE (*handler) (int))
 /* Emulate the `signal' function via `sigaction'.  */
 {
   struct sigaction  action;

Update PKGBUILD for autoconf 2.71 and new patches

commit 7501cd861294fef557e4f4f370ef3025af14d061
Author: ** Redacted **
Date:   Tue Nov 11 15:54:49 2025 -0500

    repaired

diff --git a/PKGBUILD b/PKGBUILD
index 6330052..72aca74 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,23 +14,31 @@ depends=('ncurses')
 options=('!emptydirs')
 install=$pkgname.install
 source=("http://seehuhn.de/data/$pkgname-$pkgver.tar.gz"
-   "Makefile.in.patch"
-   "config.patch")
+  "Makefile.in.patch"
+  "config.patch"
+  "highscore.c.patch"
+  "signal.c.patch")
 sha256sums=('352dc16ccae4c66f1e87ab071e6a4ebeb94ff4e4f744ce1b12a769d02fe5d23f'
-            '985df74c531400d3cba8ef3a8bc3c2fcfcc53efb42f1430c04b1a971108ca73c'
-            '6f8e82c566aafc5bf0ddf4ab4ea3381fa723278bc1744bc6923bcf9cd03d4283')
+  '985df74c531400d3cba8ef3a8bc3c2fcfcc53efb42f1430c04b1a971108ca73c'
+  '6f8e82c566aafc5bf0ddf4ab4ea3381fa723278bc1744bc6923bcf9cd03d4283'
+  'dc4f36a3d6742cb0b330e60695f60a2bc532e9cf4e8e0600475b441e2545f243'
+  '0155c1a84eb68794ad3e344785895c025b920e88dd3616742029887117480048')

 prepare() {
   cd "${srcdir}"/$pkgname-$pkgver

   patch -Np0 -i ${srcdir}/Makefile.in.patch
-  patch --strip=1 < ${srcdir}/config.patch
+  patch -Np0 -i ${srcdir}/highscore.c.patch
+  patch -Np0 -i ${srcdir}/signal.c.patch
+
+  patch --strip=1 <${srcdir}/config.patch
 }

 build() {
   cd "${srcdir}"/$pkgname-$pkgver

   ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
+  autoupdate
   make
 }

You may need to fix the sha256sums, I may have messed them up.

majewsky commented on 2025-11-02 11:53 (UTC)

Upstream URL has changed to https://www.seehuhn.de/pages/moon-buggy.html. I got this URL by following the 301 redirects that the Internet Archive has recorded, since the redirect does not seem to be working anymore.

ap_qld commented on 2025-04-05 08:04 (UTC)

Yep undefined reference to fclean:

highscore.c:322:7: error: implicit declaration of function ‘fclean’; did you mean ‘wclear’? [-Wimplicit-function-declaration]
  322 |       fclean (score_file);
      |       ^~~~~~
      |       wclear

tkdncty2 commented on 2024-03-26 00:13 (UTC)

Fails to compile. According to the yay error message, on line 322 of highscore.c there is an undefined reference to fclean.

hamblingreen commented on 2022-06-21 00:50 (UTC)

i've updated the config.guess and config.sub scripts in the moon buggy source to support non-x86 architectures, and updated the pkgbuild to reflect these changes. i added 'aarch64' to the arch array, but if you have a device of another architecture to test on, let me know and i'll add it as well. thanks! -Bobby

hamblingreen commented on 2022-05-23 21:25 (UTC)

this package can build on the aarch64 architecture when the config.guess and config.sub scripts are updated to the 2021 versions instead of the 2006 versions currently included in-source. I've created a pkgbuild that'll bulid on aarch64 using these updated sources.

ilpianista commented on 2010-11-13 15:14 (UTC)

* moved from [extra]