From 7827cf3c306dfe08f00eb151e747e7e1fb942b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Mon, 3 Apr 2023 08:49:10 +0200 Subject: [PATCH] cargo-update: generate lockfile --- srcpkgs/cargo-update/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/cargo-update/template b/srcpkgs/cargo-update/template index f892886fca3..f31800e0abe 100644 --- a/srcpkgs/cargo-update/template +++ b/srcpkgs/cargo-update/template @@ -1,7 +1,7 @@ # Template file for 'cargo-update' pkgname=cargo-update version=13.0.0 -revision=1 +revision=2 build_style=cargo hostmakedepends="pkg-config go-md2man" makedepends="libcurl-devel libgit2-devel libssh2-devel openssl-devel" @@ -18,6 +18,13 @@ if [ "$XBPS_TARGET_MACHINE" == "i686" ]; then make_check_args="-- --skip ops::assert_index_path" fi +post_patch() { + # Upstream does not ship a lockfile and is very vocal about that being + # the right way: + # https://github.com/nabijaczleweli/cargo-update/issues/50 + cargo generate-lockfile +} + post_install() { vlicense LICENSE vdoc README.md