intermodal: update to 0.1.12.

Closes: #35082 [via git-merge-pr]
This commit is contained in:
Jan Christian Grünhage 2022-01-16 13:12:25 +01:00 committed by Andrew J. Hesford
parent 6a82683e46
commit dc8837f305

View file

@ -1,11 +1,53 @@
# Template file for 'intermodal'
pkgname=intermodal
version=0.1.10
version=0.1.12
revision=1
build_style=cargo
make_check_args="-- --skip subcommand::torrent::verify::tests::output_multiple
--skip subcommand::torrent::verify::tests::output_color"
short_desc="User-friendly and featureful command-line BitTorrent metainfo utility"
maintainer="Pika <pika@lasagna.dev>"
license="CC0-1.0"
homepage="https://github.com/casey/intermodal"
distfiles="https://github.com/casey/intermodal/archive/v${version}.tar.gz"
checksum=8bb3e4f549e5c4446543babd741fec0cd7c42da4d49eca3e98c5f7611ad59618
checksum=cd62894e519dc5aa0284a5f48aab86e1a45c3bc96b8a5481741adb6960d4751a
if [ "$CROSS_BUILD" ]; then
hostmakedepends="${pkgname}"
else
hostmakedepends="help2man pkg-config"
makedepends="openssl-devel"
fi
post_build() {
if [ -z "$CROSS_BUILD" ]; then
IMDL="target/${RUST_TARGET}/release/imdl"
for target in completion-scripts man readme; do
cargo run --package gen -- --bin $IMDL $target
done
fi
}
post_install() {
if [ -z "$CROSS_BUILD" ]; then
vdoc target/gen/README.md
vcompletion target/gen/completions/_imdl zsh
vcompletion target/gen/completions/imdl.bash bash
vcompletion target/gen/completions/imdl.fish fish
for page in target/gen/man/*; do
vman $page
done
else
vdoc /usr/share/doc/intermodal/README.md
vcompletion /usr/share/zsh/site-functions/_intermodal zsh
vcompletion /usr/share/bash-completion/completions/intermodal bash
vcompletion /usr/share/fish/vendor_completions.d/intermodal.fish fish
for page in /usr/share/man/man1/imdl*; do
vman $page
done
fi
}