# Contributor: Celeste # Maintainer: Celeste pkgname=iamb pkgver=0.0.8 pkgrel=0 pkgdesc="Rust Matrix chat client with Vim keybindings" url="https://iamb.chat/" # armhf: error: Undefined temporary symbol .LBB365_2 # armv7/x86: fails tests # s390x: nix crate arch="all !x86 !armv7 !armhf !s390x" license="Apache-2.0" makedepends=" cargo cargo-auditable mandown openssl-dev " subpackages="$pkgname-doc" source="https://github.com/ulyssa/iamb/archive/v$pkgver/iamb-$pkgver.tar.gz openssl.patch " prepare() { default_prepare # Fix 'undefined reference to "open64"' cargo update -p getrandom@0.2.8 --precise 0.2.10 cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release mandown docs/iamb.1.md > docs/iamb.1 mandown docs/iamb.5.md > docs/iamb.5 } check() { cargo test --frozen } package() { install -Dm755 target/release/iamb -t "$pkgdir"/usr/bin install -Dm644 docs/iamb.1 -t "$pkgdir"/usr/share/man/man1 install -Dm644 docs/iamb.5 -t "$pkgdir"/usr/share/man/man5 install -Dm644 docs/example_config.json \ -t "$pkgdir"/usr/share/doc/$pkgname/examples } sha512sums=" f8e57a11d6344573c3c3d0c18f09d59affad2ab36be4c89d5e0657d17540ecef67b685d1fe574828bbb7c5963d52505f23f66e17c62072ca3b11f1ae594e4ae1 iamb-0.0.8.tar.gz c2926a849376cea6a678c80263c8fe73d175bb0173fda6c277b117c7246d9c038916d236078449d8e7b11896594774bd4e905199c8b74ed5117f93aeb1a2a8ed openssl.patch "