void-packages/srcpkgs/thin-provisioning-tools/template
triallax 672d52565a thin-provisioning-tools: update to 1.0.4.
Closes: #43722 [via git-merge-pr]
2023-06-11 12:55:18 -04:00

25 lines
888 B
Bash

# Template file for 'thin-provisioning-tools'
pkgname=thin-provisioning-tools
version=1.0.4
revision=1
build_style=cargo
hostmakedepends="pkg-config"
# Note: statically links to libzstd.
makedepends="libzstd-devel"
short_desc="Tools for manipulating the metadata of dm-thin device-mapper targets"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/jthornber/thin-provisioning-tools"
changelog="https://raw.githubusercontent.com/jthornber/thin-provisioning-tools/main/CHANGES"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=a973786fb9cb49d30be6fb8178d6739bc23609d4114ab601f0983ecdbf349abf
# Does a ton of disk IO.
make_check=extended
post_patch() {
vsed -e "s:target/release/pdata_tools:target/${RUST_TARGET}/release/pdata_tools:" -i Makefile
}
post_install() {
make DESTDIR=${DESTDIR} BINDIR=${DESTDIR}/usr/bin install
}