#@IgnoreInspection BashAddShebang # Maintainer: Cooper Paul EdenDay pkgname=rshare pkgver=0.1.16 pkgrel=1 pkgdesc='A file sharing program written in Rust.' arch=('x86_64') url='https://github.com/cedenday/rshare' license=('GPL3') source=("https://github.com/cedenday/rshare/releases/download/v$pkgver/rshare-v$pkgver-$CARCH-unknown-linux-musl"{,.asc}) validpgpkeys=('BDB3F8A842A1656CC10B5CD9EE3B8B8C88FC7275') sha256sums=('6015d02e7fd571bdfc8ea5cb21efcee6d37a018abf320b9d795ef204da8c5f01' 'SKIP') build() { chmod +x "$pkgname-v$pkgver-$CARCH-unknown-linux-musl" ./$pkgname-v$pkgver-$CARCH-unknown-linux-musl completions bash > "$pkgname.bash-completion" ./$pkgname-v$pkgver-$CARCH-unknown-linux-musl completions zsh > "_$pkgname" ./$pkgname-v$pkgver-$CARCH-unknown-linux-musl completions fish > "$pkgname.fish" } package() { install -Dm755 "$pkgname-v$pkgver-$CARCH-unknown-linux-musl" "$pkgdir/usr/bin/$pkgname" install -Dm644 "$pkgname.bash-completion" "$pkgdir/usr/share/bash-completion/completions/$pkgname" install -Dm644 "_$pkgname" "$pkgdir/usr/share/zsh/site-functions/_$pkgname" install -Dm644 "$pkgname.fish" "$pkgdir/usr/share/fish/completions/$pkgname.fish" }