# Contributor: guddaff # Maintainer: guddaff pkgname=ouch pkgver=0.4.1 pkgrel=3 pkgdesc="Painless compression and decompression" url="https://github.com/ouch-org/ouch" arch="all" license="MIT" makedepends="cargo bzip2-dev xz-dev zlib-dev zstd-dev cargo-auditable" subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source=" $pkgname-$pkgver.tar.gz::https://github.com/ouch-org/ouch/archive/refs/tags/$pkgver.tar.gz use-system-libs.patch " prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { OUCH_ARTIFACTS_FOLDER=artifacts \ cargo auditable build --frozen --release } check() { cargo test --frozen } package() { install -Dm755 target/release/ouch -t "$pkgdir"/usr/bin/ cd artifacts/ install -Dm644 ouch.1 ouch-list.1 ouch-compress.1 ouch-decompress.1 \ -t "$pkgdir"/usr/share/man/man1/ install -Dm644 ouch.bash \ "$pkgdir"/usr/share/bash-completion/completions/ouch install -Dm644 ouch.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/ouch.fish install -Dm644 _ouch \ "$pkgdir"/usr/share/zsh/site-functions/_ouch } sha512sums=" c0ce6c8233734db8d7bb0bb70fd7625a2770cc6f6c4e07bb5207158069c57557c4cda0d7303100c9e6bb861202bc480e45d2c4bf15e2ff4e21365a2678d05626 ouch-0.4.1.tar.gz 822b560d6c3dce9401dc1eca87110c13d023be97cd1de33f5b68fcb9b536a377f571a035623b0907e376f61162917128ca9b0c70ecc5d907399da8aee1a48d20 use-system-libs.patch "