testing/labwc: fix version output

- Print snapshot version from package instead of git branch, commit
   hash.
This commit is contained in:
prspkt 2022-04-12 21:01:36 +03:00 committed by alice
parent dcbb399ad7
commit c766846708
2 changed files with 20 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=labwc
pkgver=0.5.1
pkgrel=0
pkgrel=1
pkgdesc="Wayland stacking compositor"
url="https://github.com/labwc/labwc"
arch="all"
@ -19,7 +19,8 @@ makedepends="
wlroots-dev
"
subpackages="$pkgname-doc"
source="https://github.com/labwc/labwc/archive/$pkgver/labwc-$pkgver.tar.gz"
source="https://github.com/labwc/labwc/archive/$pkgver/labwc-$pkgver.tar.gz
remove-aports-git-version.patch"
build() {
abuild-meson . output -Dman-pages=enabled
@ -36,4 +37,5 @@ package() {
sha512sums="
bb73bd97dd8f92701abbb415da70dc51947651b993076a3ecb50eee4289798a5008758077bc08c94554c38caf910d164bbd18f3a6ec7dd4348a082564ac85eb3 labwc-0.5.1.tar.gz
494e9fa10db3cd1c610378ba4657d1a8ec0ebe8fc4efd549e5df4675c460cb09def0c10463b5a6f16de41f70a2f60c0ee8e934558caa4c16a80d19177686dc4d remove-aports-git-version.patch
"

View File

@ -0,0 +1,16 @@
--- a/meson.build
+++ b/meson.build
@@ -28,13 +28,6 @@
)
version='"@0@"'.format(meson.project_version())
-git = find_program('git', native: true, required: false)
-if git.found()
- git_commit = run_command([git, 'describe', '--dirty'])
- if git_commit.returncode() == 0
- version = '"@0@"'.format(git_commit.stdout().strip())
- endif
-endif
add_project_arguments('-DLABWC_VERSION=@0@'.format(version), language: 'c')
wlroots_version = ['>=0.15.0', '<0.16.0']