cargo-update: generate lockfile

This commit is contained in:
Jan Christian Grünhage 2023-04-03 08:49:10 +02:00 committed by classabbyamp
parent 3c3b8a2e7b
commit 7827cf3c30

View file

@ -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