From 3d20babc682152a06c5c1a6df7d0567e91bbd3b7 Mon Sep 17 00:00:00 2001 From: tcely Date: Mon, 11 Mar 2019 18:42:05 -0400 Subject: testing/rdedup: new aport https://github.com/dpc/rdedup Data deduplication with compression and public key encryption --- testing/rdedup/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 testing/rdedup/APKBUILD (limited to 'testing/rdedup') diff --git a/testing/rdedup/APKBUILD b/testing/rdedup/APKBUILD new file mode 100644 index 0000000000..a9ae0e4691 --- /dev/null +++ b/testing/rdedup/APKBUILD @@ -0,0 +1,42 @@ +# 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" -- cgit v1.2.3