void-packages/srcpkgs/nvme-cli/template
2020-02-12 08:34:06 +01:00

28 lines
915 B
Bash

# Template file for 'nvme-cli'
pkgname=nvme-cli
version=1.9
revision=3
build_style=gnu-makefile
# yeah, it must be 0 to enable
make_build_args="LIBUUID=0"
make_install_args="SBINDIR=/usr/bin"
make_install_target="install-spec"
makedepends="libuuid-devel"
depends="util-linux"
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=d7c3d56f36f81c0933f7b7c3f90c4196be0fec758affc8062c525b6bc5ea65f5
CFLAGS="-Wno-error -I."
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"
# no need for systemd files
rm -rf "${DESTDIR}/usr/lib/systemd"
}