jobextra/ndctl/PKGBUILD

55 lines
1.8 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 |---------------------------------------
# From version 73 onwards upstream uses meson and it can't be configured
# to build without systemd, it seems as it requires a build and running systemd
# So this 72.1 may be the last for this pkg, unless they decide to allow a substitute
# Do not think of Artix, and Void, and Gentoo, how they do it, they use elogind and systemd-libs!
pkgname=ndctl
pkgver=72.1
pkgrel=03
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' 'xmlto' 'iniparser' 'automake' 'autoconf') # 'meson')
source=("https://github.com/pmem/ndctl/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
prepare() {
# fix location of modprobe.d conf
sed -i 's|^modprobedir =.*|modprobedir = /usr/lib/modprobe.d/|' $pkgname-$pkgver/Makefile.am
}
check() {
cd $pkgname-$pkgver
make check
}
build() {
cd $pkgname-$pkgver
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --without-systemd
make
}
package() {
depends=('iniparser' 'json-c' 'keyutils' 'kmod' 'util-linux-libs' 'eudev')
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
#---- license gpg-key sha256sums ----
license=('LGPL')
# sha256sums=(97f85b897378d293da75f91c2f238c0a45e1626dc2c2367e7a8d78378ee0f73b) # ndctl-73.tar.gz
# ndctl 73 uses meson and does not allow configuration without systemd -- see note above
sha256sums=(9059ee4b129730604cee6aba7a8bc207b6e9aa6466b6da9b3b29d1996bf3712a) # ndctl-72.1.tar.gz