gnu: trealla: Patch package version string in build step.

* gnu/packages/prolog.scm (trealla) [arguments]: Patch version.

Change-Id: Ia9428a54e3d51deaf066a91674ff9f9eeadc5a20
This commit is contained in:
jgart 2024-09-15 23:50:08 -05:00
parent 947a740270
commit 00341f1ed0
No known key found for this signature in database
GPG Key ID: A52AA2B477B6DD35

View File

@ -212,6 +212,11 @@ it.")
#~(modify-phases %standard-phases
;; Upstream does not use a configure script.
(delete 'configure)
(add-before 'build 'patch-package-version
(lambda _
(substitute* "Makefile"
(("\\$\\(shell git describe --abbrev=4 --dirty --always --tags\\)")
(string-append "v" #$version)))))
(replace 'install
;; Upstream does not provide an install target.
(lambda _