jobextra/ndctl/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Normal View History

2022-05-05 17:25:10 +02:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=ndctl
2023-01-22 15:03:17 +01:00
pkgver=75
pkgrel=01
2022-05-05 17:25:10 +02:00
pkgdesc='Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel w/o systemd'
arch=('x86_64')
url="https://github.com/pmem/ndctl"
makedepends=('asciidoctor' 'bash-completion' 'meson' 'xmlto')
2022-05-05 17:25:10 +02:00
source=("https://github.com/pmem/ndctl/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
prepare() {
# fix location of modprobe.d conf
sed -i "s|^modprobedatadir =.*|modprobedatadir = '/usr/lib/modprobe.d/'|" $pkgname-$pkgver/contrib/meson.build
2022-05-05 17:25:10 +02:00
}
build() {
arch-meson $pkgname-$pkgver build -D systemd=disabled
meson compile -C build
2022-05-05 17:25:10 +02:00
}
check() {
meson test -C build --print-errorlogs
2022-05-05 17:25:10 +02:00
}
package() {
depends=('iniparser' 'json-c' 'keyutils' 'kmod' 'util-linux-libs' 'eudev')
meson install -C build --destdir "$pkgdir"
# cd $pkgname-$pkgver
# make DESTDIR="$pkgdir" install
2022-05-05 17:25:10 +02:00
}
#---- license gpg-key sha256sums ----
license=('LGPL')
2023-01-22 15:03:17 +01:00
sha256sums=(896315c9d15f4fcb0e7afd5f5a661e5d52bd5c085163b53adf4df1e693daa3a5) # ndctl-75.tar.gz