aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ffsend/APKBUILD
blob: 25e2f858fdae86fa105663b354649212352835dc (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.61
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
	$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="2f1a3e36a91801850c13dcf2974c6e39585e0f0d72e9239e9899412189101a33f5dc7f453cbfb87487d5083477682c02b24ad132028296154c6602a66a9ebc26  ffsend-v0.2.61.tar.gz"