32 lines
915 B
Bash
32 lines
915 B
Bash
# Template file for 'binwalk'
|
|
pkgname=binwalk
|
|
version=2.3.4
|
|
revision=3
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3"
|
|
short_desc="Easy tool for analyzing/reversing/extracting firmware images"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/ReFirmLabs/binwalk"
|
|
distfiles="https://github.com/ReFirmLabs/binwalk/archive/v${version}.tar.gz"
|
|
checksum=60416bfec2390cec76742ce942737df3e6585c933c2467932f59c21e002ba7a9
|
|
|
|
post_extract() {
|
|
vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
|
|
|
|
if [ $(id -u) -eq 0 ]; then
|
|
# CI container has different privileges than expected in tests.
|
|
# Append " **{'run-as' : 'root'}," to "binwalk.scan(input_vector_file,".
|
|
vsed -i -e "/binwalk.scan(input_vector_file,/ s/$/ **{'run-as' : 'root'},/" testing/tests/test_*.py
|
|
fi
|
|
}
|
|
|
|
do_check() {
|
|
: nose is broken
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|