contrib/ndctl/Pkgfile
2024-05-02 23:56:21 +02:00

27 lines
787 B
Plaintext

# Description: Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel
# URL: https://github.com/pmem/ndctl
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: iniparser json-c keyutils meson ninja
name=ndctl
version=79
release=1
source=(https://github.com/pmem/ndctl/archive/v$version/$name-$version-$release.tar.gz)
build() {
meson setup $name-$version build \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=false \
-D b_pie=true \
-D asciidoctor=disabled \
-D docs=disabled \
-D systemd=disabled \
-D libtracefs=disabled
meson compile -C build
DESTDIR=$PKG meson install -C build
prt-get isinst bash-completion || rm -rf $PKG/usr/share/bash-completion
}