void-packages/srcpkgs/nvme-cli/template
2020-04-26 18:04:17 +00:00

28 lines
996 B
Bash

# Template file for 'nvme-cli'
pkgname=nvme-cli
version=1.11.1
revision=1
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=7c8dddbba92cf82ff50416476fe60357ecb2048470dca33765c3f36bf89b48ac
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"
}