32 lines
999 B
Plaintext
32 lines
999 B
Plaintext
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
pkgname=ndctl
|
|
pkgver=73
|
|
pkgrel=1
|
|
pkgdesc='Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel'
|
|
arch=('x86_64')
|
|
url="https://github.com/pmem/ndctl"
|
|
license=('LGPL')
|
|
depends=('iniparser' 'json-c' 'keyutils' 'kmod' 'systemd-libs' 'util-linux-libs')
|
|
makedepends=('asciidoctor' 'bash-completion' 'meson' 'systemd' 'xmlto')
|
|
source=("https://github.com/pmem/ndctl/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
|
|
sha512sums=('a52a1fb655f044e5cd48b95b3abd89b4f6a991d6439c02e66da6b55947b8a08c279fec873def0b5a18a4e0b670d40e246c333b619fb62f0c6808357d15d847a5')
|
|
|
|
prepare() {
|
|
# fix location of modprobe.d conf
|
|
sed -i "s|^modprobedatadir =.*|modprobedatadir = '/usr/lib/modprobe.d/'|" $pkgname-$pkgver/contrib/meson.build
|
|
}
|
|
|
|
build() {
|
|
arch-meson $pkgname-$pkgver build
|
|
meson compile -C build
|
|
}
|
|
|
|
check() {
|
|
meson test -C build --print-errorlogs
|
|
}
|
|
|
|
package() {
|
|
meson install -C build --destdir "$pkgdir"
|
|
}
|