33 lines
1001 B
Bash
33 lines
1001 B
Bash
# Template file for 'cargo-update'
|
|
pkgname=cargo-update
|
|
version=13.0.4
|
|
revision=3
|
|
build_style=cargo
|
|
hostmakedepends="pkg-config go-md2man"
|
|
makedepends="libcurl-devel libgit2-devel libssh2-devel openssl-devel"
|
|
short_desc="Cargo subcommand for updates to installed executables"
|
|
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
|
|
license="MIT"
|
|
homepage="https://github.com/nabijaczleweli/cargo-update"
|
|
changelog="https://github.com/nabijaczleweli/cargo-update/releases"
|
|
distfiles="https://github.com/nabijaczleweli/cargo-update/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=cc07255dc6b7b61d7c54955ea33486b447f629564d9f3ebb88d421ab5bcdcdf6
|
|
|
|
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
|
|
|
|
cd man
|
|
for page in *.md; do
|
|
go-md2man -in ${page} -out ${page%.md}.1
|
|
vman ${page%.md}.1
|
|
done
|
|
}
|