# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=pueue pkgver=3.2.0 pkgrel=0 pkgdesc="Manage your shell commands" url="https://github.com/nukesor/pueue" # ppc64le, riscv64, s390x: fails to build ring crate arch="all !ppc64le !riscv64 !s390x" license="MIT" checkdepends="bash" makedepends="cargo cargo-auditable" subpackages=" $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="https://github.com/Nukesor/pueue/archive/v$pkgver/$pkgname-$pkgver.tar.gz fix-process_helper-tests.patch timeout.patch " # FIXME: built with current rust, a testcase segfaults.. options="net !check" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen mkdir -p target/completion local sh; for sh in bash fish zsh; do ./target/release/pueue completions $sh target/completion/ done } check() { # test_multiple_worker - fails on CI, but passes locally cargo test --frozen -- \ --skip daemon::integration::worker_environment_variables::test_multiple_worker } package() { cd target install -D -m755 release/pueue -t "$pkgdir"/usr/bin/ install -D -m755 release/pueued -t "$pkgdir"/usr/bin/ install -D -m644 completion/$pkgname.bash "$pkgdir"/usr/share/bash-completion/completions/$pkgname install -D -m644 completion/*.fish -t "$pkgdir"/usr/share/fish/vendor_completions.d/ install -D -m644 completion/_* -t "$pkgdir"/usr/share/zsh/site-functions/ } sha512sums=" 38a52c6075e9c00d6023d02a73cb9f371b05c468dd3ea57029f86b7fa67f9d893ac24220dc074fcae18eeb7a642158db173481b25b24dae9dd281b27566ad255 pueue-3.2.0.tar.gz a0d855a6353b74babb67c17c496821d0aecf6bea831fa94c4a2b41af08e5d4e80a616b8c9e08989080f44e972cb67b59719431561b1f359471f26c642287a34f fix-process_helper-tests.patch 9354467f87eac40ee9dcf7dca13ee360077d539cf53ad9bdf6cdbb2031fbfa7fe65cbacfbf1e97a25da59495471bebcfc08bf2c9bfa84764a3d347569af71c5a timeout.patch "