archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ndctl / trunk / PKGBUILD
blobd356dc3760959cec8938e85866eeb2bc706b8062
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ndctl
4 pkgver=72.1
5 pkgrel=1
6 pkgdesc='Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel'
7 arch=('x86_64')
8 url="https://github.com/pmem/ndctl"
9 license=('LGPL')
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')
15 prepare() {
16   # fix location of modprobe.d conf
17   sed -i 's|^modprobedir =.*|modprobedir = /usr/lib/modprobe.d/|' $pkgname-$pkgver/Makefile.am
20 build() {
21   cd "$srcdir"/$pkgname-$pkgver
22   ./autogen.sh
23   ./configure --prefix=/usr --sysconfdir=/etc
24   make
27 package() {
28   cd "$srcdir"/$pkgname-$pkgver
29   make DESTDIR="$pkgdir" install