Subject: [PATCH v3 1/2] gnu: Add xpenguins.

From: Steve George <[email-masked]>
Date: Sat, 17 Feb 2024 17:12:18 +0000

From: Sarthak Shah <[email-masked]>

* gnu/packages/toys.scm (xpenguins): New variable.

Reviewed-by: Greg Hogan <[email-masked]>
Reviewed-by: Steve George <[email-masked]>

Change-Id: I6262092da4d51abaca1d6f01ec2e3f27baca7a01
---
 gnu/packages/toys.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/toys.scm b/gnu/packages/toys.scm
index c058e70dac9..6fdc931ae66 100644
--- a/gnu/packages/toys.scm
+++ b/gnu/packages/toys.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2020 Efraim Flashner <[email-masked]>
 ;;; Copyright © 2021 Leo Famulari <[email-masked]>
 ;;; Copyright © 2023 Zheng Junjie <[email-masked]>
+;;; Copyright © 2023 Sarthak Shah <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -399,6 +400,39 @@ (define-public xsnow
 and various scenery elements.")
     (license license:gpl3+)))
 
+(define-public xpenguins
+  (package
+    (name "xpenguins")
+    (version "3.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://ratrabbit.nl/downloads/xpenguins/xpenguins-"
+             version ".tar.gz"))
+       (sha256
+        (base32 "03qwc7gf21d2ixkrxxwwgayj6f5fv1kg4b7ggx90j5269il63adm"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'fix-install-path
+           (lambda _
+             ;; Install program to bin instead of games.
+             (substitute* "src/Makefile.in"
+               (("(gamesdir = \\$\\(exec_prefix\\)/)games" _ prefix)
+                (string-append prefix "bin"))))))))
+    (inputs
+     (list gtk+ libx11 libxpm libxt libxml2))
+    (native-inputs
+     (list pkg-config))
+    (home-page "https://www.ratrabbit.nl/ratrabbit/software/xpenguins/index.html")
+    (synopsis "Let penguins take over your desktop!")
+    (description "@code{Xpenguins} is a vintage application for Unix systems,
+showing penguins running, flying, falling etc. on the desktop, using windows as
+run paths.")
+    (license license:gpl2+)))
+
 (define-public nyancat
   (package
     (name "nyancat")
-- 
2.41.0