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