Skip to content

Commit a772916

Browse files
committed
imhex: update to 1.38.1.
1 parent e104d6c commit a772916

File tree

2 files changed

+14
-161
lines changed

2 files changed

+14
-161
lines changed

srcpkgs/imhex/patches/fix-fmt11.patch

Lines changed: 0 additions & 153 deletions
This file was deleted.

srcpkgs/imhex/template

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Template file for 'imhex'
22
pkgname=imhex
3-
version=1.37.4
4-
revision=2
3+
version=1.38.1
4+
revision=1
55
build_wrksrc="ImHex"
66
build_style=cmake
77
build_helper=qemu
@@ -21,8 +21,8 @@ homepage="https://imhex.werwolv.net/"
2121
changelog="https://github.com/WerWolv/ImHex/releases"
2222
distfiles="https://github.com/WerWolv/ImHex/releases/download/v${version}/Full.Sources.tar.gz>imhex-${version}.tar.gz
2323
https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v${version}.tar.gz>imhex-patterns-${version}.tar.gz"
24-
checksum="711481cc8dfc368d1b88f5d3e8a44d65f23fa43eb9db092599924f3a4cf1aaa2
25-
541eddc8cc427d1aeb749bc455911fccc87f64a7784bd4bbc35ecb7b56c03ad5"
24+
checksum="cd3531066a41dde1f0751e5d3146a936897df35ad5ba1fa49a9f3ace88e6901d
25+
3aae4c0970bc1b85bf4dc566bdf31de33c7dce593375645600549643ce6f9841"
2626
patch_args="-Np1 -d $build_wrksrc"
2727
python_version=3
2828

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

37+
post_extract() {
38+
mv ImHex-Patterns-ImHex-v${version} ImHex-Patterns
39+
}
40+
3741
do_check() {
3842
cd build
3943
ninja ${makejobs} unit_tests
@@ -42,10 +46,12 @@ do_check() {
4246
}
4347

4448
post_install() {
45-
rm ${DESTDIR}/usr/bin/imhex-updater
46-
vmkdir usr/share/imhex
47-
for d in constants encodings includes magic patterns yara; do
48-
vcopy ../ImHex-Patterns-ImHex-v${version}/$d usr/share/imhex
49+
rm -f ${DESTDIR}/usr/bin/imhex-updater
50+
rm -rf ${DESTDIR}/usr/share/imhex/sdk
51+
52+
# Extras from ImHex-Patterns that upstream does not install by default
53+
for d in disassemblers plugins scripts themes tips; do
54+
vcopy "../ImHex-Patterns/${d}" usr/share/imhex
4955
done
5056
}
5157

0 commit comments

Comments
 (0)