33 lines
985 B
Bash
33 lines
985 B
Bash
# Template file for 'binwalk'
|
|
pkgname=binwalk
|
|
version=2.3.3
|
|
revision=2
|
|
build_style=python3-module
|
|
hostmakedepends="python3"
|
|
depends="python3"
|
|
checkdepends="python3-coverage python3-nose tar"
|
|
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=7e32b94dc77632b51d18732b5456e2a3ef85e4521d7d4a54410e36f93859501f
|
|
|
|
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() {
|
|
PYTHONPATH="${wrksrc}/src" python3 setup.py test
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|