[arch-commits] Commit in ndctl/repos/extra-x86_64 (PKGBUILD PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Wed May 4 08:49:28 UTC 2022


    Date: Wednesday, May 4, 2022 @ 08:49:28
  Author: felixonmars
Revision: 444583

archrelease: copy trunk to extra-x86_64

Added:
  ndctl/repos/extra-x86_64/PKGBUILD
    (from rev 444582, ndctl/trunk/PKGBUILD)
Deleted:
  ndctl/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   61 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 31 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-04 08:49:17 UTC (rev 444582)
+++ PKGBUILD	2022-05-04 08:49:28 UTC (rev 444583)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=ndctl
-pkgver=72.1
-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' 'systemd' 'xmlto')
-source=("https://github.com/pmem/ndctl/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('7304e23121c99457fa6e22a399fb636f6a66d6d07b090463ec41e424687b06e7e8a1a18623ab9dd5783aaccfa09ff964e3477b63aaa4614ac60f6e6050452f12')
-
-prepare() {
-  # fix location of modprobe.d conf
-  sed -i 's|^modprobedir =.*|modprobedir = /usr/lib/modprobe.d/|' $pkgname-$pkgver/Makefile.am
-}
-
-build() {
-  cd "$srcdir"/$pkgname-$pkgver
-  ./autogen.sh
-  ./configure --prefix=/usr --sysconfdir=/etc
-  make
-}
-
-package() {
-  cd "$srcdir"/$pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-}

Copied: ndctl/repos/extra-x86_64/PKGBUILD (from rev 444582, ndctl/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-04 08:49:28 UTC (rev 444583)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at 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"
+}



More information about the arch-commits mailing list