# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=ffsend pkgver=0.2.55 pkgrel=0 pkgdesc=" A fully featured Firefox Send client" url="https://gitlab.com/timvisee/ffsend" arch="x86_64 x86 armhf armv7 aarch64 ppc64le" # limited by cargo license="GPL-3.0-only" makedepends="cargo openssl-dev" subpackages=" $pkgname-zsh-completion:zshcomp:noarch $pkgname-fish-completion:fishcomp:noarch $pkgname-bash-completion:bashcomp:noarch " source="https://gitlab.com/timvisee/ffsend/-/archive/v$pkgver/ffsend-v$pkgver.tar.gz" builddir="$srcdir/$pkgname-v$pkgver" case "$CARCH" in x86) export CFLAGS="$CFLAGS -fno-stack-protector" ;; esac build() { cargo build --release } check() { cargo test --release } package() { cargo install --path . --root="$pkgdir/usr" rm "$pkgdir"/usr/.crates.toml } bashcomp() { depends="" pkgdesc="Bash completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" install -Dm644 "$builddir"/contrib/completions/ffsend.bash \ "$subpkgdir"/usr/share/bash-completion/completions/ffsend } zshcomp() { depends="" pkgdesc="Zsh compltions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel zsh" install -Dm644 "$builddir"/contrib/completions/_ffsend \ "$subpkgdir"/usr/share/zsh/site-functions/_ffsend } fishcomp() { depends="" pkgdesc="Fish completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel fish" install -Dm644 "$builddir"/contrib/completions/ffsend.fish \ "$subpkgdir"/usr/share/fish/completions/ffsend.fish } sha512sums="09b4c33eb6601b3b647e8f3967353575b82d41c944ab960c4a04a7afb16e2ab2ec35cd518c63ecda1fafce9456cec47dc854e2769ee0348e9044fa2f4fd05202 ffsend-v0.2.55.tar.gz"