28 lines
994 B
Bash
28 lines
994 B
Bash
# Template file for 'nvme-cli'
|
|
pkgname=nvme-cli
|
|
version=1.12
|
|
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=a75270e65a4a7a6add48f748ba216d8f68d78f90f8cb77e88e9753b74d527991
|
|
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"
|
|
}
|