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

Evangelos Foutras foutrelis at archlinux.org
Sat Apr 25 14:19:12 UTC 2020


    Date: Saturday, April 25, 2020 @ 14:19:12
  Author: foutrelis
Revision: 381559

archrelease: copy trunk to staging-x86_64

Added:
  ndctl/repos/staging-x86_64/
  ndctl/repos/staging-x86_64/PKGBUILD
    (from rev 381558, ndctl/trunk/PKGBUILD)

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

Copied: ndctl/repos/staging-x86_64/PKGBUILD (from rev 381558, ndctl/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-04-25 14:19:12 UTC (rev 381559)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=ndctl
+pkgver=68
+pkgrel=2
+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=('json-c' 'kmod' 'systemd-libs' 'libutil-linux')
+makedepends=('asciidoctor' 'xmlto' 'bash-completion')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pmem/ndctl/archive/v$pkgver.tar.gz")
+sha512sums=('dd8abbb63f612d10dd4a879cb98f80df2ef773c547a89051789128eee1f52c3c0fdae82007b51ce99a603243e5c28e5b2f1a7864c606f4b14d3fe9c4fd790883')
+
+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
+}



More information about the arch-commits mailing list