From dbc0723d8953454486aecbf09c4b60678f2ddb5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sat, 8 Apr 2023 18:37:21 +0200 Subject: [PATCH] bandwhich: fix build on Rust 1.64+ --- srcpkgs/bandwhich/template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/bandwhich/template b/srcpkgs/bandwhich/template index ee5e75f5d521..afb640eddfad 100644 --- a/srcpkgs/bandwhich/template +++ b/srcpkgs/bandwhich/template @@ -1,7 +1,7 @@ # Template file for 'bandwhich' pkgname=bandwhich version=0.20.0 -revision=1 +revision=2 build_style=cargo short_desc="Terminal bandwidth utilization tool" maintainer="Jan Christian Grünhage " @@ -10,6 +10,12 @@ homepage="https://github.com/imsnif/bandwhich" distfiles="${homepage}/archive/${version}.tar.gz" checksum=4bbf05be32439049edd50bd1e4d5a2a95b0be8d36782e4100732f0cc9f19ba12 +post_patch() { + # fixes compilation on Rust 1.64 and higher + cargo update --package socket2:0.3.11 --precise 0.3.16 +} + + post_install() { vlicense LICENSE.md }