avp/guix.scm

56 lines
1.6 KiB
Scheme
Raw Permalink Normal View History

2022-06-13 15:54:08 +02:00
;; Guix package for avp. To build or install, run from the toplevel directory:
;;
;; guix build --file=guix.scm
;; guix package --install-from-file=guix.scm
;;
;; To create and enter a development environment:
;;
;; guix shell --pure --development --file=guix.scm
(use-modules
(gnu packages audio)
(gnu packages gl)
2022-12-27 21:00:06 +01:00
(gnu packages pkg-config)
2022-06-13 15:54:08 +02:00
(gnu packages sdl)
(gnu packages video)
2022-12-30 17:42:05 +01:00
(guix build-system gnu)
2022-06-13 15:54:08 +02:00
(guix build utils)
(guix gexp)
(guix git-download)
(guix packages)
(ice-9 popen)
(ice-9 rdelim))
(define (git-version directory)
(with-directory-excursion directory
(read-line (open-pipe* OPEN_READ "git" "describe" "--always" "--tags"))))
2022-12-27 20:17:44 +01:00
(define license (@@ (guix licenses) license))
2022-06-13 15:54:08 +02:00
(define source-dir (dirname (current-filename)))
(define-public avp
(package
(name "avp")
(version (git-version source-dir))
(source (local-file source-dir #:recursive? #t #:select? (git-predicate source-dir)))
2022-12-30 17:42:05 +01:00
(build-system gnu-build-system)
2022-06-13 15:54:08 +02:00
(arguments
2022-12-30 17:42:05 +01:00
(list
#:tests? #f
#:make-flags #~(list "CC=gcc" (string-append "DESTDIR=" #$output))
#:phases
#~(modify-phases %standard-phases (delete 'configure))))
2022-06-13 15:54:08 +02:00
(inputs
(list ffmpeg mesa openal sdl2))
2022-12-27 21:00:06 +01:00
(native-inputs
(list pkg-config))
2022-06-13 15:54:08 +02:00
(home-page "https://sr.ht/~jetomit/avp")
(synopsis "Aliens Versus Predator game engine")
(description "Unofficial Linux port of the game engine for the Rebellion
Developments game Aliens Versus Predator. This package does not
provide game assets.")
2022-12-27 20:17:44 +01:00
(license (license "avp" "file:///LICENSE" "Aliens Versus Predator license"))))
2022-06-13 15:54:08 +02:00
avp