29 lines
803 B
Bash
29 lines
803 B
Bash
# Template file for 'binwalk'
|
|
pkgname=binwalk
|
|
version=2.4.2
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3 tar"
|
|
checkdepends="${depends} python3-pytest"
|
|
short_desc="Easy tool for analyzing/reversing/extracting firmware images"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/OSPG/binwalk"
|
|
distfiles="https://github.com/OSPG/binwalk/archive/v${version}.tar.gz"
|
|
checksum=36b11a4d245bce9663c2c17085282eb1012716c9f0f6754497126b1ad25cd4e7
|
|
|
|
post_extract() {
|
|
vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
|
|
# calls `binwalk --help`
|
|
PATH="$DESTDIR/usr/bin/:$PATH" \
|
|
PYTHONPATH="${DESTDIR}/${py3_sitelib}" \
|
|
python3 setup.py autocomplete
|
|
vcompletion binwalk.bash bash
|
|
}
|