# Maintainer: Breno Leitao pkgname=ndctl pkgver=66 pkgrel=0 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-2.0-only LGPL-2.1-only" depends="libuuid json-c kmod" makedepends="autoconf automake libtool asciidoc xmlto kmod-dev eudev-dev util-linux-dev json-c-dev linux-headers asciidoctor bash-completion keyutils-dev" subpackages="$pkgname-doc $pkgname-dev $pkgname-libs $pkgname-bash-completion:bashcomp:noarch" source="$pkgname-$pkgver.tar.gz::https://github.com/pmem/$pkgname/archive/v$pkgver.tar.gz" options="!check" # tests require building & loading the nfit_test.ko kernel module 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 \ --without-systemd make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } bashcomp() { depends="" pkgdesc="Bash completion for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share/ } sha512sums="3647905b585a68975b28d61f26b0b486468a90a7eea31ef7fd874f9848671dd72db2ad6d85f5268b63988bfffab2c0be569d668dccf95bbdf01fad55300cc0c8 ndctl-66.tar.gz"