summaryrefslogtreecommitdiff
path: root/testing/ffsend/APKBUILD
blob: 1f0b89196a0e5c7126c0d10d8ff5d8dc90934b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=ffsend
pkgver=0.2.76
pkgrel=1
pkgdesc="A fully featured Firefox Send client"
url="https://gitlab.com/timvisee/ffsend"
arch="all !ppc64le !s390x !riscv64" # limited by cargo, ring dep
license="GPL-3.0-only"
makedepends="cargo openssl-dev>3"
subpackages="
	$pkgname-zsh-completion
	$pkgname-fish-completion
	$pkgname-bash-completion
	"
source="https://gitlab.com/timvisee/ffsend/-/archive/v$pkgver/ffsend-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	cargo install --locked --path . --root="$pkgdir/usr"
	rm "$pkgdir"/usr/.crates*

	install -Dm644 "$builddir"/contrib/completions/ffsend.bash \
			"$pkgdir"/usr/share/bash-completion/completions/ffsend
	install -Dm644 "$builddir"/contrib/completions/_ffsend \
			"$pkgdir"/usr/share/zsh/site-functions/_ffsend
	install -Dm644 "$builddir"/contrib/completions/ffsend.fish \
			"$pkgdir"/usr/share/fish/completions/ffsend.fish
}

sha512sums="
3b4ee66725e9770497620f62d1012aa31c7e11b8b95d931d56bee3077556e743ae2b71f727403cf7f45a6809959815f3b3d94b041fdb5530713b76e00541139c  ffsend-v0.2.76.tar.gz
"