11# Template file for 'imhex'
22pkgname=imhex
3- version=1.37.4
4- revision=2
3+ version=1.38.1
4+ revision=1
55build_wrksrc="ImHex"
66build_style=cmake
77build_helper=qemu
@@ -21,8 +21,8 @@ homepage="https://imhex.werwolv.net/"
2121changelog="https://github.com/WerWolv/ImHex/releases"
2222distfiles="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 "
2626patch_args="-Np1 -d $build_wrksrc"
2727python_version=3
2828
@@ -34,6 +34,10 @@ if [ "$XBPS_TARGET_LIBC" = musl ]; then
3434 configure_args+=" -DIMHEX_DISABLE_STACKTRACE=ON"
3535fi
3636
37+ post_extract() {
38+ mv ImHex-Patterns-ImHex-v${version} ImHex-Patterns
39+ }
40+
3741do_check() {
3842 cd build
3943 ninja ${makejobs} unit_tests
@@ -42,10 +46,12 @@ do_check() {
4246}
4347
4448post_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