void-packages/srcpkgs/nvme-cli/template

28 lines
996 B
Bash

# Template file for 'nvme-cli'
pkgname=nvme-cli
version=1.10.1
revision=2
build_style=gnu-makefile
# yeah, it must be 0 to enable
make_build_args="LIBUUID=0"
make_install_args="SBINDIR=/usr/bin UDEVDIR=/usr/lib/udev"
make_install_target="install-spec"
makedepends="libuuid-devel"
short_desc="NVMe management command line interface"
maintainer="Peter Froehlich <peter.hans.froehlich@gmail.com>"
license="GPL-2.0-only"
homepage="http://nvmexpress.org"
distfiles="https://github.com/linux-nvme/nvme-cli/archive/v${version}.tar.gz"
checksum=6be38485464e37fd822eba05eb3b47e792565350b2c0249a94528910cdc1ea31
conf_files="/etc/nvme/*.conf"
post_install() {
# these files are touch'd by install, remove so they aren't registered
# by the package (which would cause trouble during removal)
rm -f "${DESTDIR}/etc/nvme/hostnqn"
rm -f "${DESTDIR}/etc/nvme/hostid"
rm -rf "${DESTDIR}/etc/udev/rules.d"
rm -f "${DESTDIR}/usr/sbin/nvme"
# no need for systemd files
rm -rf "${DESTDIR}/usr/lib/systemd"
}