binwalk: update to 2.3.1.
This commit is contained in:
parent
d5a7e7bca6
commit
17fb7466e4
2 changed files with 18 additions and 4 deletions
14
srcpkgs/binwalk/patches/fallback-version.patch
Normal file
14
srcpkgs/binwalk/patches/fallback-version.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- src/binwalk/core/version.py.orig
|
||||
+++ src/binwalk/core/version.py
|
||||
@@ -1,6 +1,10 @@
|
||||
try:
|
||||
from importlib import metadata
|
||||
- get_version = lambda : metadata.version("binwalk")
|
||||
+ def get_version():
|
||||
+ try:
|
||||
+ return metadata.version("binwalk")
|
||||
+ except metadata.PackageNotFoundError:
|
||||
+ return "unknown"
|
||||
except ImportError:
|
||||
try:
|
||||
# Running on pre-3.8 Python; use importlib-metadata package
|
|
@ -1,18 +1,18 @@
|
|||
# Template file for 'binwalk'
|
||||
pkgname=binwalk
|
||||
version=2.2.0
|
||||
revision=3
|
||||
version=2.3.1
|
||||
revision=1
|
||||
build_style=python3-module
|
||||
pycompile_module="binwalk"
|
||||
hostmakedepends="python3"
|
||||
depends="python3"
|
||||
checkdepends="python3-nose"
|
||||
checkdepends="python3-coverage python3-nose"
|
||||
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=f5495f0e4c5575023d593f7c087c367675df6aeb7f4d9a2966e49763924daa27
|
||||
checksum=7ec9d8fcb8686f4060d37e1096669e3ed8ce1194c91ad80199622448bcc01b19
|
||||
|
||||
post_extract() {
|
||||
vsed -i -e 's;/etc/bash_completion.d/%s;%s.bash;' setup.py
|
||||
|
|
Loading…
Reference in a new issue