app=ndctl
version=72.1
build=1sml
homepage="https://github.com/pmem/ndctl"
download="https://github.com/pmem/ndctl/archive/refs/tags/v$version.tar.gz"
desc="Library for managing the libnvdimm sub-system in the linux kernel"
requires="util-linux json-c keyutils eudev kmod netbsd-curses"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  NOCONFIGURE=1 ./autogen.sh

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-docs \
    --without-systemd 

  make
  make install DESTDIR=$pkg 

  mkfinalpkg
}

sha512sums="
7304e23121c99457fa6e22a399fb636f6a66d6d07b090463ec41e424687b06e7e8a1a18623ab9dd5783aaccfa09ff964e3477b63aaa4614ac60f6e6050452f12  ndctl-72.1.tar.gz
"
