void-packages/srcpkgs/ntdsextract2/template

25 lines
976 B
Bash

# Template file for 'ntdsextract2'
pkgname=ntdsextract2
version=1.2.2
revision=1
_esedbver=0.2.5
build_wrksrc="${pkgname}-${version}"
build_style=cargo
short_desc="Display contents of Active Directory database files"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/janstarke/ntdsextract2"
distfiles="https://github.com/janstarke/ntdsextract2/archive/refs/tags/v${version}.tar.gz
https://github.com/sunsetkookaburra/rust-libesedb/archive/refs/tags/libesedb-v${_esedbver}.tar.gz"
checksum="e35ea84b6a517ff1aa4b3113bb8b631c3f0b56ec577b07cdd2f43d24b8b20d5d
30fce9b9766903280d3f6273e2f991b2296ccd3eed878262d1a68c7ceb76b658"
make_check=no # testing requires a large sample test file that isn't distributed
pre_configure() {
if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then
vsed -e "s/4096 \* 1024 \* 1024/usize::max_value()/" -i src/main.rs
fi
cargo generate-lockfile
cargo update --package term-table --precise 1.3.2
}