mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-20 13:12:24 +02:00
60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=ffsend
|
|
pkgver=0.2.59
|
|
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"
|
|
|
|
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="77e29b0b3df2b9be930e8da34db0b76ee71abf041e9f9b8afb77d0533e027b7cc478767ce13395ba76f2d8cc7439b5124198a9e0912cbcd23dbc1de253cf6013 ffsend-v0.2.59.tar.gz"
|