blob: 58eb807fb12ff79890e532cf9710e64008a55db7 (
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
43
44
45
46
|
# Contributor: tcely <rdedup+aports@tcely.33mail.com>
# Maintainer:
pkgname="rdedup"
pkgver="3.1.1"
pkgrel=2
pkgdesc="Data deduplication with compression and public key encryption"
url="https://github.com/dpc/rdedup"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by cargo
license="MPL-2.0"
makedepends="cargo clang-dev libsodium-dev openssl-dev xz-dev"
source="https://github.com/dpc/${pkgname}/archive/${pkgname}-v${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}-${pkgname}-v${pkgver}"
# disable stack protector on x86 due linking error in cc package
case "$CARCH" in
x86)
export CFLAGS="$CFLAGS -fno-stack-protector"
;;
esac
_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"
|