aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rdedup/APKBUILD
blob: a9ae0e4691fc93e56dc7114dbc3c4f8343867a04 (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
42
# Contributor: tcely <rdedup+aports@tcely.33mail.com>
# Maintainer: tcely <rdedup+aports@tcely.33mail.com>
pkgname="rdedup"
pkgver="3.1.1"
pkgrel=0
pkgdesc="Data deduplication with compression and public key encryption"
url="https://github.com/dpc/rdedup"
arch="x86_64" # limited by cargo
license="MPL-2.0"
depends=""
makedepends="cargo clang-dev libsodium-dev openssl-dev xz-dev"
install=""
subpackages=""
source="https://github.com/dpc/${pkgname}/archive/${pkgname}-v${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}-${pkgname}-v${pkgver}"

_cargo_env() {
	cd "$builddir"

	RELEASE=true
	export RELEASE
}

build() {
	_cargo_env

	make check build
}

check() {
	_cargo_env

	make bench test
}

package() {
	_cargo_env

	cargo install --root "$pkgdir" --path "$builddir"
}

sha512sums="f94fc99ce84f5618ec5e24f48c593e7644eecadc4be2d997f9847576d97f3c5adf97a97fca1376ea0da4e24b9acf7cee354e032e6354a07a9922c63f798426ae  rdedup-v3.1.1.tar.gz"