# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=handlr pkgver=0.6.4 pkgrel=4 pkgdesc="A better xdg-utils - manage mimeapps.list and default applications with ease" url="https://github.com/chmln/handlr" # riscv64: build failure in libc crate arch="all !riscv64" license="MIT" depends="shared-mime-info" makedepends="cargo cargo-auditable" subpackages="$pkgname-fish-completion $pkgname-zsh-completion" source="https://github.com/chmln/handlr/archive/v$pkgver/handlr-$pkgver.tar.gz $pkgname-fix-crash-on-readonly-mimeapps-list.patch::https://github.com/chmln/handlr/commit/a782886f05191c1834404d777e74d00f9fa60f7e.patch " export CARGO_PROFILE_RELEASE_OPT_LEVEL="z" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release } check() { cargo test --frozen } package() { install -D -m755 target/release/handlr -t "$pkgdir"/usr/bin/ install -D -m644 completions/_handlr -t "$pkgdir"/usr/share/zsh/site-functions/ install -D -m644 completions/handlr.fish -t "$pkgdir"/usr/share/fish/vendor_completions.d/ } sha512sums=" 55779ad0c01e065678e1a57f338272f1d38057658fe6b7c54f7bc35595575aafe13aed6ca3d80cc65b912971aac9a2a6c78ac5512315af9f2d676a92c8c395ec handlr-0.6.4.tar.gz 2a1a58e000c59f90aa7b3be500d019c135c069d1fba3c8b1f5b7bc8b63b3f9abf02d9268ecc3374b0606d759a4828eda751b1b7ec2e34b86da2412cb04885609 handlr-fix-crash-on-readonly-mimeapps-list.patch "