43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
#!/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
|
|
pkgver=75
|
|
pkgrel=01
|
|
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')
|
|
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
|
|
}
|
|
|
|
build() {
|
|
arch-meson $pkgname-$pkgver build -D systemd=disabled
|
|
meson compile -C build
|
|
}
|
|
|
|
check() {
|
|
meson test -C build --print-errorlogs
|
|
}
|
|
|
|
package() {
|
|
depends=('iniparser' 'json-c' 'keyutils' 'kmod' 'util-linux-libs' 'eudev')
|
|
meson install -C build --destdir "$pkgdir"
|
|
# cd $pkgname-$pkgver
|
|
# make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('LGPL')
|
|
|
|
sha256sums=(896315c9d15f4fcb0e7afd5f5a661e5d52bd5c085163b53adf4df1e693daa3a5) # ndctl-75.tar.gz
|