Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 0 additions & 153 deletions srcpkgs/imhex/patches/fix-fmt11.patch

This file was deleted.

22 changes: 14 additions & 8 deletions srcpkgs/imhex/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'imhex'
pkgname=imhex
version=1.37.4
revision=2
version=1.38.1
revision=1
build_wrksrc="ImHex"
build_style=cmake
build_helper=qemu
Expand All @@ -21,8 +21,8 @@ homepage="https://imhex.werwolv.net/"
changelog="https://github.com/WerWolv/ImHex/releases"
distfiles="https://github.com/WerWolv/ImHex/releases/download/v${version}/Full.Sources.tar.gz>imhex-${version}.tar.gz
https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v${version}.tar.gz>imhex-patterns-${version}.tar.gz"
checksum="711481cc8dfc368d1b88f5d3e8a44d65f23fa43eb9db092599924f3a4cf1aaa2
541eddc8cc427d1aeb749bc455911fccc87f64a7784bd4bbc35ecb7b56c03ad5"
checksum="cd3531066a41dde1f0751e5d3146a936897df35ad5ba1fa49a9f3ace88e6901d
3aae4c0970bc1b85bf4dc566bdf31de33c7dce593375645600549643ce6f9841"
patch_args="-Np1 -d $build_wrksrc"
python_version=3

Expand All @@ -34,6 +34,10 @@ if [ "$XBPS_TARGET_LIBC" = musl ]; then
configure_args+=" -DIMHEX_DISABLE_STACKTRACE=ON"
fi

post_extract() {
mv ImHex-Patterns-ImHex-v${version} ImHex-Patterns
}

do_check() {
cd build
ninja ${makejobs} unit_tests
Expand All @@ -42,10 +46,12 @@ do_check() {
}

post_install() {
rm ${DESTDIR}/usr/bin/imhex-updater
vmkdir usr/share/imhex
for d in constants encodings includes magic patterns yara; do
vcopy ../ImHex-Patterns-ImHex-v${version}/$d usr/share/imhex
rm -f ${DESTDIR}/usr/bin/imhex-updater
rm -rf ${DESTDIR}/usr/share/imhex/sdk

# Extras from ImHex-Patterns that upstream does not install by default
for d in disassemblers plugins scripts themes tips; do
vcopy "../ImHex-Patterns/${d}" usr/share/imhex
done
}

Expand Down