1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
6 pkgdesc='Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel'
8 url="https://github.com/pmem/ndctl"
10 depends=('iniparser' 'json-c' 'keyutils' 'kmod' 'systemd-libs' 'util-linux-libs')
11 makedepends=('asciidoctor' 'bash-completion' 'systemd' 'xmlto')
12 source=("https://github.com/pmem/ndctl/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
13 sha512sums=('7304e23121c99457fa6e22a399fb636f6a66d6d07b090463ec41e424687b06e7e8a1a18623ab9dd5783aaccfa09ff964e3477b63aaa4614ac60f6e6050452f12')
16 # fix location of modprobe.d conf
17 sed -i 's|^modprobedir =.*|modprobedir = /usr/lib/modprobe.d/|' $pkgname-$pkgver/Makefile.am
21 cd "$srcdir"/$pkgname-$pkgver
23 ./configure --prefix=/usr --sysconfdir=/etc
28 cd "$srcdir"/$pkgname-$pkgver
29 make DESTDIR="$pkgdir" install