29 lines
803 B
Bash
29 lines
803 B
Bash
# Template file for 'binwalk'
|
|
pkgname=binwalk
|
|
version=2.4.1
|
|
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=26d13afd3610b39a38a3062a34c05d94dacda3f6f6aa6d1d19e42b61fabe1c8f
|
|
|
|
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
|
|
}
|