From de9b0092250e56c942dd9b6de231c677a735e018 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Tue, 28 Oct 2025 14:50:03 +0200 Subject: [PATCH] Rebuild with inih and libheif and automatic stripping --- pkg.info | 23 ++++++++++++++++++++--- source.sh | 8 +------- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/pkg.info b/pkg.info index 6addfe7..9ecd562 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,27 @@ name: imv description: X11 and Wayland image viewer intended for use with tiling window managers version: 4.5.0 -revision: 2 +revision: 3 url: https://sr.ht/~exec64/imv/ license: MIT architecture: any -depends: ["glu","icu","libjxl","librsvg","libxkbcommon","pango"] -make_depends: ["asciidoc","cmake","cmocka","meson"] type: source +depends: + - glu + - icu + - inih + - libheif + - libjxl + - librsvg + - libxkbcommon + - pango +make_depends: + - asciidoc + - cmake + - cmocka + - meson +downloads: + - url: https://git.sr.ht/~exec64/imv/archive/v${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 3b11991a86942d757830015033b1c3a3cc915be2f0c20fee7bc7493be560cbcb diff --git a/source.sh b/source.sh index ee948ab..4d0f658 100644 --- a/source.sh +++ b/source.sh @@ -2,15 +2,9 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT -DOWNLOAD="https://git.sr.ht/~exec64/imv/archive/v${BPM_PKG_VERSION}.tar.gz" -FILENAME="${DOWNLOAD##*/}" - # The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location +# This function is used for putting downloaded files to the correct location or applying patches prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" - # Apply icu 76.1 patch cd "$BPM_SOURCE" patch -Np1 -i ../imv-4.5.0-Link-to-the-common-ICU-library.patch