void-packages/srcpkgs/rdedup/template

26 lines
787 B
Bash

# Template file for 'rdedup'
pkgname=rdedup
version=3.1.1
revision=3
wrksrc=rdedup-rdedup-v${version}
build_style=cargo
hostmakedepends="pkg-config clang"
makedepends="libressl-devel liblzma-devel libsodium-devel"
short_desc="Data deduplication engine"
maintainer="Renato Aguiar <renato@renag.me>"
license="MPL-2.0"
homepage="https://github.com/dpc/rdedup"
distfiles="https://github.com/dpc/rdedup/archive/rdedup-v${version}.tar.gz"
checksum=5e7c09c40897cd2f2635e8c213c2ff0f5c4d7ceccbd22980cd4cb0a16f3dfc28
if [ "$CROSS_BUILD" ]; then
export HOST_CC="$BUILD_CC"
export HOST_CFLAGS="$BUILD_CFLAGS"
export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=${XBPS_CROSS_BASE}"
fi
pre_build() {
cargo update --package openssl-sys --precise 0.9.53
cargo update --package openssl --precise 0.10.22
}