Skip to content
Snippets Groups Projects
Commit cc9b7c5b authored by Leo's avatar Leo
Browse files

community/ndctl: upgrade to 73

parent 1bf2e970
No related branches found
No related tags found
1 merge request!31792community/ndctl: upgrade to 73
Pipeline #114367 passed
......@@ -2,52 +2,32 @@
# Contributor: Breno Leitao <breno.leitao@gmail.com>
# Maintainer:
pkgname=ndctl
pkgver=72.1
pkgver=73
pkgrel=0
pkgdesc="Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel"
url="https://github.com/pmem/ndctl"
arch="all"
license="GPL-2.0-only AND LGPL-2.1-only"
depends="kmod"
makedepends="asciidoc asciidoctor autoconf automake bash-completion
makedepends="meson asciidoc asciidoctor autoconf automake bash-completion
eudev-dev iniparser-dev json-c-dev keyutils-dev kmod-dev libtool
linux-headers util-linux-dev xmlto"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs
$pkgname-bash-completion:bashcomp:noarch"
$pkgname-bash-completion"
source="ndctl-$pkgver.tar.gz::https://github.com/pmem/ndctl/archive/v$pkgver.tar.gz"
options="!check" # tests require building & loading the nfit_test.ko kernel module
prepare() {
default_prepare
echo $pkgver >"$builddir/version"
./autogen.sh
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--without-systemd
make
abuild-meson \
-Dsystemd=disabled \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
package() {
make DESTDIR="$pkgdir" install
}
bashcomp() {
depends=""
pkgdesc="Bash completion for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share/
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="
7304e23121c99457fa6e22a399fb636f6a66d6d07b090463ec41e424687b06e7e8a1a18623ab9dd5783aaccfa09ff964e3477b63aaa4614ac60f6e6050452f12 ndctl-72.1.tar.gz
a52a1fb655f044e5cd48b95b3abd89b4f6a991d6439c02e66da6b55947b8a08c279fec873def0b5a18a4e0b670d40e246c333b619fb62f0c6808357d15d847a5 ndctl-73.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment