aboutsummaryrefslogtreecommitdiffstats
path: root/main/ndctl/APKBUILD
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-05-02 16:29:21 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2019-05-27 18:23:11 +0000
commitcc3c64a9242ce0b328011caa0c4f9caac0d4e010 (patch)
tree73cc5f74694c413e7d91238507e8ecdee16528b5 /main/ndctl/APKBUILD
parentcea660389b0d19f5ca02cfe0320299e0432b52a7 (diff)
downloadaports-cc3c64a9242ce0b328011caa0c4f9caac0d4e010.tar.bz2
aports-cc3c64a9242ce0b328011caa0c4f9caac0d4e010.tar.xz
main/ndctl: move from testing
It's required for libblockdev -> udisks2
Diffstat (limited to 'main/ndctl/APKBUILD')
-rw-r--r--main/ndctl/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/main/ndctl/APKBUILD b/main/ndctl/APKBUILD
new file mode 100644
index 0000000000..d0abea40ee
--- /dev/null
+++ b/main/ndctl/APKBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Breno Leitao <breno.leitao@gmail.com>
+pkgname=ndctl
+pkgver=61.2
+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 LGPL-2.1-only"
+depends="libuuid json-c kmod"
+makedepends="autoconf automake libtool asciidoc xmlto kmod-dev
+ eudev-dev util-linux-dev json-c-dev linux-headers"
+subpackages="$pkgname-doc $pkgname-dev $pkgname-libs
+ $pkgname-bash-completion:bashcomp:noarch"
+source="$pkgname-$pkgver.tar.gz::https://github.com/pmem/$pkgname/archive/v$pkgver.tar.gz
+ fix-includes.patch"
+builddir="$srcdir"/$pkgname-$pkgver
+options="!check" # tests require building & loading the nfit_test.ko kernel module
+
+prepare() {
+ default_prepare
+ cd "$builddir"
+ ./autogen.sh
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ cd "$builddir"
+ 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/
+}
+
+sha512sums="da231a61654b0f863c8cac8d70b166a5a60df4be86ed74e1e8fb3a23b4692483200075f0606244720f1b919891c00eb3ae9b49c48662213bc08601f0fe11008b ndctl-61.2.tar.gz
+04f4509cd634dc6b40108012928ac8cc44fc4ce3a27c866ba7eb4124c9c1e9a123fe8aaf9a8b5e9513692a2e623ab1ab13f0eaaaa6537ee2bf0871c1d90c83ab fix-includes.patch"