aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ffsend/APKBUILD
blob: c618977ab589758a583fe0c8261744c776039f6e (plain) (blame)
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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=ffsend
pkgver=0.2.64
pkgrel=0
pkgdesc="A fully featured Firefox Send client"
url="https://gitlab.com/timvisee/ffsend"
arch="all !mips !mips64 !ppc64le !s390x" # limited by cargo, ring dep
license="GPL-3.0-only"
makedepends="cargo openssl-dev"
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
}

check() {
	cargo test --release
}

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

	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="efd2a5b239168b31fd5654b5579ffd9e0213407157fc4ef275ab54069bb781815d16a4d00182a37d34f89a0e73e280c8d2e29eb133644791df3c10fcb2be1bd8  ffsend-v0.2.64.tar.gz"