;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013 Nikita Karetnikov ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages grue-hunter) #:use-module (guix licenses) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (gnu packages perl)) (define-public grue-hunter (package (name "grue-hunter") (version "1.0") (source (origin (method url-fetch) (uri (string-append "http://jxself.org/" name ".tar.gz")) (sha256 (base32 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3")))) (build-system gnu-build-system) ; no Makefile.PL (arguments `(#:modules ((guix build gnu-build-system) (guix build utils) (srfi srfi-1)) #:phases (alist-replace 'install (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) ;; (zero? (system (format #f "cp -r . ~a" out))) (zero? (system (format #f "mkdir bin ~a/" out))) (zero? (system (format #f "cp gh.pl ~a/bin/" out))))) (alist-delete 'configure (alist-delete 'patch-generated-file-shebangs (alist-delete 'build (alist-delete 'check (alist-delete 'patch-shebangs (alist-delete 'strip %standard-phases))))))) #:tests? #f)) ; no test target (inputs `(("perl" ,perl))) (home-page "http://jxself.org/grue-hunter.shtml") (synopsis "Text adventure game") (description "Grue Hunter is a text adventure game written in Perl. You must make your way through an underground cave system in search of the Grue. Can you capture it and get out alive?") (license agpl3+)))