rdedup: update to 3.2.1.

removes the need for patched/backported bindgen
This commit is contained in:
classabbyamp 2022-03-13 20:53:07 -04:00 committed by Leah Neukirchen
parent 1490e17b58
commit e8c4c0e5c0
2 changed files with 5 additions and 28 deletions

View file

@ -1,12 +0,0 @@
patch bindgen to use BINDGEN_EXTRA_CLANG_ARGS variable to set sysroot for cross builds
https://github.com/jnbr/rust-bindgen/tree/0.37.4-clang_args
--- a/Cargo.toml 2019-06-15 13:18:05.509893680 +0200
+++ b/Cargo.toml 2019-06-15 13:19:48.854887006 +0200
@@ -53,3 +53,6 @@
slog-term = "2"
slog-async = "2"
url = "1"
+
+[patch.crates-io]
+bindgen = {git = 'https://github.com/jnbr/rust-bindgen', rev = '4afb05213b3e7e0ec928b84ea85d9f2b99477586'}

View file

@ -1,25 +1,14 @@
# Template file for 'rdedup'
pkgname=rdedup
version=3.1.1
revision=6
wrksrc=rdedup-rdedup-v${version}
version=3.2.1
revision=1
build_style=cargo
build_helper=rust
hostmakedepends="pkg-config clang"
makedepends="openssl-devel liblzma-devel libsodium-devel"
short_desc="Data deduplication engine"
maintainer="Orphaned <orphan@voidlinux.org>"
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.58
cargo update --package openssl --precise 0.10.22
}
distfiles="https://github.com/dpc/rdedup/archive/v${version}.tar.gz"
checksum=023b5576f30ebf75c1740dd244ac13b6ef3ad7f6d4a6ab6654e12130201eb923