# Maintainer: Alex Henrie pkgname=avml pkgver=0.13.0 pkgrel=1 pkgdesc='A portable volatile memory acquisition tool for Linux' arch=('x86_64') url='https://github.com/microsoft/avml' license=('MIT') makedepends=('musl' 'rust-musl') source=("https://github.com/microsoft/avml/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('209511ac3cd98e3b68734135603f802efcb9ce442c836ea03aed676b53cd976e') prepare() { cd "$pkgname-$pkgver" cargo fetch --locked --target "$CARCH-unknown-linux-musl" } build() { cd "$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target cargo build --frozen --release --all-features --target $CARCH-unknown-linux-musl } package() { cd "$pkgname-$pkgver" find target/$CARCH-unknown-linux-musl/release \ -maxdepth 1 \ -executable \ -type f \ -exec install -Dm0755 -t "$pkgdir/usr/bin/" {} + }