# Maintainer: Breno Leitao pkgname=ndctl pkgver=57.1 pkgrel=1 pkgdesc="Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel" url="https://github.com/pmem/ndctl" arch="all" license="GPL" depends="libuuid json-c kmod" makedepends="autoconf automake libtool asciidoc xmlto kmod-dev eudev-dev util-linux-dev json-c-dev linux-headers" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/pmem/$pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver prepare() { default_prepare cd "$builddir" ./autogen.sh } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="74e3c47574e7ef8ddb51d61e2c76cbb1564238b3d7b6da41294d7d46e7deef4758857fc671b7723aab16fc8bcea9b1acbfe35a19264c5d3567824b2fd713320a ndctl-57.1.tar.gz"