# Template file for 'bcache-tools'
pkgname=bcache-tools
version=1.1
revision=1
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="pkg-config"
makedepends="libuuid-devel libblkid-devel libsmartcols-devel"
short_desc="User space tools for the bcache hybrid storage system"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://bcache.evilpiepirate.org/"
distfiles="https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/snapshot/bcache-tools-${version}.tar.gz"
checksum=d1c92274ae03b414dd1a05277bf89dd2a8395496c692e3b143d9e6112d3421f8
python_version=3

pre_install() {
	vmkdir usr/bin
	vmkdir usr/sbin
	vmkdir usr/lib
	vmkdir lib/udev/rules.d
	vmkdir usr/share/man/man8
}

post_install() {
	mv $DESTDIR/usr/sbin/* $DESTDIR/usr/bin
	mv $DESTDIR/lib/* $DESTDIR/usr/lib
}
