29 lines
803 B
Bash
29 lines
803 B
Bash
# Template file for 'binwalk'
|
|
pkgname=binwalk
|
|
version=2.4.3
|
|
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=1b48aa2167dda6b434d6c98bdfbf513358ed65ca10d5e5dd90893718cabcdfab
|
|
|
|
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
|
|
}
|