diff --git a/community/imv/APKBUILD b/community/imv/APKBUILD index c9eb89c4f4e..19dfc87e200 100644 --- a/community/imv/APKBUILD +++ b/community/imv/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Drew DeVault 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 " diff --git a/community/imv/version.patch b/community/imv/version.patch new file mode 100644 index 00000000000..a8ce09e3a0f --- /dev/null +++ b/community/imv/version.patch @@ -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')