From 4ca22c14ae02446f2a7ddc112f5b7c1ceb6621bc Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Thu, 31 Aug 2023 12:51:17 +0200 Subject: [PATCH] intermodal: update to 0.1.13 --- srcpkgs/intermodal/template | 55 +++++++++++-------------------------- 1 file changed, 16 insertions(+), 39 deletions(-) diff --git a/srcpkgs/intermodal/template b/srcpkgs/intermodal/template index c91be83b9171d..ca939a6a68d81 100644 --- a/srcpkgs/intermodal/template +++ b/srcpkgs/intermodal/template @@ -1,7 +1,7 @@ # Template file for 'intermodal' pkgname=intermodal -version=0.1.12 -revision=2 +version=0.1.13 +revision=1 build_style=cargo make_check_args="-- --skip subcommand::torrent::verify::tests::output_multiple --skip subcommand::torrent::verify::tests::output_color" @@ -9,45 +9,22 @@ short_desc="User-friendly and featureful command-line BitTorrent metainfo utilit maintainer="Pika " license="CC0-1.0" homepage="https://github.com/casey/intermodal" -distfiles="https://github.com/casey/intermodal/archive/v${version}.tar.gz" -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 -} +distfiles="https://github.com/casey/intermodal/archive/refs/tags/v${version}.tar.gz + https://github.com/casey/intermodal/releases/download/v${version}/imdl-v${version}-x86_64-unknown-linux-musl.tar.gz" +checksum="e0c7bbfb7c4f260b7be1dd2862778fd42dc091ba2525480bc86574f2abe806ae + 95b49234140d265ac7a9de8caa821c9d110713bf687bedb8a415354ac07dcfa3" +skip_extraction="imdl-v${version}-x86_64-unknown-linux-musl.tar.gz" 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 + bsdtar xf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/imdl-v${version}-x86_64-unknown-linux-musl.tar.gz \ + --include="completions/*" \ + --include="man/*" - 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 + vcompletion completions/imdl.bash bash imdl + vcompletion completions/imdl.fish fish imdl + vcompletion completions/_imdl zsh imdl - for page in /usr/share/man/man1/imdl*; do - vman $page - done - fi + for manpage in man/*.1; do + vman ${manpage} + done }