mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
intermodal: update to 0.1.13
This commit is contained in:
parent
e808fb57a5
commit
9c0079c4d9
1 changed files with 19 additions and 40 deletions
|
@ -1,53 +1,32 @@
|
||||||
# Template file for 'intermodal'
|
# Template file for 'intermodal'
|
||||||
pkgname=intermodal
|
pkgname=intermodal
|
||||||
version=0.1.12
|
version=0.1.13
|
||||||
revision=2
|
revision=1
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
make_check_args="-- --skip subcommand::torrent::verify::tests::output_multiple
|
make_check_args="-- --skip subcommand::torrent::verify::tests::output_multiple
|
||||||
--skip subcommand::torrent::verify::tests::output_color"
|
--skip subcommand::torrent::verify::tests::output_color
|
||||||
|
--skip tracker::client::tests::client_announce_ipv6
|
||||||
|
--skip tracker::client::tests::client_connect_v6"
|
||||||
short_desc="User-friendly and featureful command-line BitTorrent metainfo utility"
|
short_desc="User-friendly and featureful command-line BitTorrent metainfo utility"
|
||||||
maintainer="Pika <pika@lasagna.dev>"
|
maintainer="Pika <pika@lasagna.dev>"
|
||||||
license="CC0-1.0"
|
license="CC0-1.0"
|
||||||
homepage="https://github.com/casey/intermodal"
|
homepage="https://github.com/casey/intermodal"
|
||||||
distfiles="https://github.com/casey/intermodal/archive/v${version}.tar.gz"
|
distfiles="https://github.com/casey/intermodal/archive/refs/tags/v${version}.tar.gz
|
||||||
checksum=cd62894e519dc5aa0284a5f48aab86e1a45c3bc96b8a5481741adb6960d4751a
|
https://github.com/casey/intermodal/releases/download/v${version}/imdl-v${version}-x86_64-unknown-linux-musl.tar.gz"
|
||||||
|
checksum="e0c7bbfb7c4f260b7be1dd2862778fd42dc091ba2525480bc86574f2abe806ae
|
||||||
if [ "$CROSS_BUILD" ]; then
|
95b49234140d265ac7a9de8caa821c9d110713bf687bedb8a415354ac07dcfa3"
|
||||||
hostmakedepends="${pkgname}"
|
skip_extraction="imdl-v${version}-x86_64-unknown-linux-musl.tar.gz"
|
||||||
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() {
|
post_install() {
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
bsdtar xf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/imdl-v${version}-x86_64-unknown-linux-musl.tar.gz \
|
||||||
vdoc target/gen/README.md
|
--include="completions/*" \
|
||||||
|
--include="man/*"
|
||||||
|
|
||||||
vcompletion target/gen/completions/_imdl zsh
|
vcompletion completions/imdl.bash bash imdl
|
||||||
vcompletion target/gen/completions/imdl.bash bash
|
vcompletion completions/imdl.fish fish imdl
|
||||||
vcompletion target/gen/completions/imdl.fish fish
|
vcompletion completions/_imdl zsh imdl
|
||||||
|
|
||||||
for page in target/gen/man/*; do
|
for manpage in man/*.1; do
|
||||||
vman $page
|
vman ${manpage}
|
||||||
done
|
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
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue