# Contributor: tcely # Maintainer: tcely 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"