# Maintainer: Vasia Novikov (replace "aaa" with "a") pkgname=rua pkgver=0.14.14 pkgrel=1 pkgdesc='AUR helper in Rust providing control, review and jailed/offline build options' url='https://github.com/vn971/rua' source=("${pkgname}-${pkgver}.tar.gz::https://github.com/vn971/rua/archive/${pkgver}.tar.gz") arch=('x86_64' 'i686') license=('GPL3') makedepends=('cargo') depends=('bubblewrap' 'git' 'pacman' 'xz' 'openssl') optdepends=( 'shellcheck: to check PKGBUILD scripts, taking care of special variables' 'bubblewrap-suid: version of bubblewrap that works on linux-hardened kernel' 'sudo: package installation can be done via sudo, if convenient' ) #options+=(!strip) # uncomment if you want readable stack traces sha256sums=(2351ac6e8bd76986e0860259aa74f7ed08de2a5cfff6ed596172ec41cf3c39d0) build () { cd "$srcdir/$pkgname-$pkgver" mkdir -p target/completions if pacman -T pacman-git > /dev/null; then _features="git" fi RUSTUP_TOOLCHAIN=stable \ COMPLETIONS_DIR=target/completions \ cargo build --features "${_features:-}" --release } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm755 target/release/rua "${pkgdir}/usr/bin/rua" install -Dm644 target/completions/rua.bash "${pkgdir}/usr/share/bash-completion/completions/rua.bash" install -Dm644 target/completions/rua.fish "${pkgdir}/usr/share/fish/completions/rua.fish" install -Dm644 target/completions/_rua "${pkgdir}/usr/share/zsh/functions/Completion/Linux/_rua" }