aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ndctl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/ndctl')
-rw-r--r--testing/ndctl/APKBUILD12
1 files changed, 11 insertions, 1 deletions
diff --git a/testing/ndctl/APKBUILD b/testing/ndctl/APKBUILD
index 2d9ed2b610..03c89a3daa 100644
--- a/testing/ndctl/APKBUILD
+++ b/testing/ndctl/APKBUILD
@@ -9,7 +9,8 @@ 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"
+subpackages="$pkgname-doc
+ $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
@@ -38,5 +39,14 @@ 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/
+}
+
sha512sums="da231a61654b0f863c8cac8d70b166a5a60df4be86ed74e1e8fb3a23b4692483200075f0606244720f1b919891c00eb3ae9b49c48662213bc08601f0fe11008b ndctl-61.2.tar.gz
04f4509cd634dc6b40108012928ac8cc44fc4ce3a27c866ba7eb4124c9c1e9a123fe8aaf9a8b5e9513692a2e623ab1ab13f0eaaaa6537ee2bf0871c1d90c83ab fix-includes.patch"