guix.scm 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ;; SuperTux
  2. ;; Copyright (C) 2019 Ingo Ruhnke <grumbel@gmail.com>
  3. ;;
  4. ;; This program is free software: you can redistribute it and/or modify
  5. ;; it under the terms of the GNU General Public License as published by
  6. ;; the Free Software Foundation, either version 3 of the License, or
  7. ;; (at your option) any later version.
  8. ;;
  9. ;; This program is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;;
  14. ;; You should have received a copy of the GNU General Public License
  15. ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. (use-modules (ice-9 popen)
  17. (ice-9 rdelim)
  18. (guix build utils)
  19. (guix build-system gnu)
  20. (guix git-download)
  21. (guix gexp)
  22. (guix licenses)
  23. (guix packages)
  24. (gnu packages autotools)
  25. (gnu packages gl)
  26. (gnu packages pkg-config)
  27. (gnu packages sdl))
  28. (define %source-dir (dirname (current-filename)))
  29. (define current-commit
  30. (with-directory-excursion %source-dir
  31. (let* ((port (open-input-pipe "git describe --tags"))
  32. (output (read-line port)))
  33. (close-pipe port)
  34. (string-trim-right output #\newline))))
  35. (define-public supertux-milestone1
  36. (package
  37. (name "supertux-milestone1")
  38. (version current-commit)
  39. (source (local-file %source-dir
  40. #:recursive? #t
  41. #:select? (git-predicate %source-dir)))
  42. (build-system gnu-build-system)
  43. (native-inputs
  44. `(("autoconf" ,autoconf)
  45. ("automake" ,automake)
  46. ("pkg-config" ,pkg-config)))
  47. (inputs
  48. `(("sdl" ,sdl)
  49. ("sdl-image" ,sdl-image)
  50. ("sdl-mixer" ,sdl-mixer)
  51. ("mesa" ,mesa)
  52. ("glu" ,glu)))
  53. (synopsis "Classic version of the platformer starring Tux the Penguin")
  54. (description "SuperTux - Milestone 1 is the classic version of the
  55. game SuperTux as it was originally released in 2003. Featuring no
  56. backscrolling and a resolution of 640x480. The modern edition with
  57. lots of new features and improvements can be found under the name
  58. SuperTux.
  59. The game is a platformer with strong inspiration from the Super Mario
  60. Bros games for Nintendo. Run and jump through multiple worlds,
  61. fighting off enemies by jumping on them or bumping them from below.
  62. Grabbing power-ups and other stuff on the way.
  63. The game features:
  64. @itemize
  65. @item 9 enemies
  66. @item 26 playable levels</li>
  67. @item Software and OpenGL rendering modes
  68. @item configurable joystick and keyboard input
  69. @item new music</li>
  70. @item completely redone graphics
  71. @end itemize")
  72. (home-page "https://supertux.org/")
  73. (license gpl2+)))
  74. supertux-milestone1
  75. ;; EOF ;;