community/imv: fix version output

This commit is contained in:
psykose 2022-02-10 22:17:09 +00:00 committed by alice
parent 79df505976
commit 712c4e163a
2 changed files with 19 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=imv
pkgver=4.3.1
pkgrel=2
pkgrel=3
pkgdesc="Image viewer for X11/Wayland"
url="https://sr.ht/~exec64/imv"
arch="all"
@ -26,6 +26,7 @@ checkdepends="
subpackages="$pkgname-doc $pkgname-wayland $pkgname-x11"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~exec64/imv/archive/v$pkgver.tar.gz
move-wayland-and-x11-to-libexec.patch
version.patch
"
builddir="$srcdir/$pkgname-v$pkgver"
@ -86,4 +87,5 @@ x11() {
sha512sums="
f70b95f3f99d7d6a9276370650cef0885938464e3a40ab1768231292ba35d9040f7196a5853ea1268fe6d47cf08d129b3fbae1ca215df96d12ccd85b7efd1ee6 imv-4.3.1.tar.gz
e14260a79083393a5e81933adafe654892d6fc9e33f18eb906e9bcccc4227a9862851e234a0f14b457e87b8a9a7de71168d8b4fa18677b83105ab24bf3dcc60f move-wayland-and-x11-to-libexec.patch
910880051a25d3dfe6a9dd6fc1db620f09e5bdcef90fff17509d3fc8252cbde3797c52848857d6dbfc47c4231a8152e55bd87bec846dbbdc9e9429091c27fb5c version.patch
"

View File

@ -0,0 +1,16 @@
--- a/meson.build
+++ b/meson.build
@@ -8,13 +8,6 @@
)
version = '@0@'.format(meson.project_version())
-prog_git = find_program('git', required: false)
-if prog_git.found()
- git_description = run_command([prog_git.path(), 'describe', '--dirty', '--always', '--tags'])
- if git_description.returncode() == 0
- version = git_description.stdout().strip()
- endif
-endif
add_project_arguments('-DIMV_VERSION="@0@"'.format(version), language: 'c')
add_project_arguments('-D_XOPEN_SOURCE=700', language: 'c')