Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 10 additions & 19 deletions srcpkgs/binwalk/template
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
# Template file for 'binwalk'
pkgname=binwalk
version=2.4.3
revision=3
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3 tar"
checkdepends="${depends} python3-pytest"
version=3.1.0
revision=1
archs="~i686* ~armv*"
build_style=cargo
make_check_args="--lib --bins"
hostmakedepends="pkg-config"
makedepends="fontconfig-devel"
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
}
homepage="https://github.com/ReFirmLabs/binwalk"
distfiles="https://github.com/ReFirmLabs/binwalk/archive/refs/tags/v${version}.tar.gz"
checksum=06f595719417b70a592580258ed980237892eadc198e02363201abe6ca59e49a

post_install() {
vlicense LICENSE

# calls `binwalk --help`
PATH="$DESTDIR/usr/bin/:$PATH" \
PYTHONPATH="${DESTDIR}/${py3_sitelib}" \
python3 setup.py autocomplete
vcompletion binwalk.bash bash
}