0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 19:09:46 +00:00
Lakka-LibreELEC/packages/wayland/compositor/sway/patches/sway-100.03-do-not-use-git-version.patch
Rudi Heitbaum f3bd0106ab sway: update to 1.8
Co-authored-by: SupervisedThinking <supervisedthinking@gmail.com>
2022-12-25 21:35:25 +00:00

23 lines
834 B
Diff

--- a/meson.build
+++ b/meson.build
@@ -158,18 +158,6 @@
add_project_arguments('-DSYSCONFDIR="/@0@"'.format(join_paths(prefix, sysconfdir)), language : 'c')
version = '"@0@"'.format(meson.project_version())
-git = find_program('git', native: true, required: false)
-if git.found()
- git_commit = run_command([git, 'rev-parse', '--short', 'HEAD'], check: false)
- git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check: false)
- if git_commit.returncode() == 0 and git_branch.returncode() == 0
- version = '"@0@-@1@ (" __DATE__ ", branch \'@2@\')"'.format(
- meson.project_version(),
- git_commit.stdout().strip(),
- git_branch.stdout().strip(),
- )
- endif
-endif
add_project_arguments('-DSWAY_VERSION=@0@'.format(version), language: 'c')
# Compute the relative path used by compiler invocations.