# Maintainer: PktSurf <smlinux@pktsurf.in>
app=ndctl
version=72.1
build=2sml
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"

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

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

  NOCONFIGURE=1 ./autogen.sh
}

build() {
  ./configure \
    --prefix="" \
    --disable-docs \
    --without-systemd 

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
e1fc3b71da3fc093ea1adcec5843c98460c6a095e31fd7728bda44804835124a7f1993187c6657c1effd6edba9b7d3e05310a987f3cd1bd088ad5d495dbc4fd3  ndctl-72.1.tar.lz
"
