26 lines
888 B
Bash
26 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
|
|
}
|