aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-12-27 17:55:02 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2016-12-27 17:55:24 +0100
commitca9d88b6eef3d58cd1d13dc899ebb55468f29185 (patch)
tree36bbb1c9e498fa3fd8ed58f41e3d16f4b44b9015 /testing
parentcbc023da1f106f87d81de4b22d822d1b967981ed (diff)
downloadaports-ca9d88b6eef3d58cd1d13dc899ebb55468f29185.tar.bz2
aports-ca9d88b6eef3d58cd1d13dc899ebb55468f29185.tar.xz
testing/nvme-cli: add subpackage for bash completion
Diffstat (limited to 'testing')
-rw-r--r--testing/nvme-cli/APKBUILD15
1 files changed, 12 insertions, 3 deletions
diff --git a/testing/nvme-cli/APKBUILD b/testing/nvme-cli/APKBUILD
index cde69e543e..a83a3cf671 100644
--- a/testing/nvme-cli/APKBUILD
+++ b/testing/nvme-cli/APKBUILD
@@ -2,15 +2,14 @@
# Maintainer: Florian Heigl <florian.heigl@gmail.com>
pkgname=nvme-cli
pkgver=1.1
-pkgrel=0
+pkgrel=1
pkgdesc="NVM-Express user space tooling for Linux"
arch="all"
url="https://github.com/linux-nvme/nvme-cli"
license="GPL"
depends=""
makedepends="$depends_dev linux-headers coreutils"
-provides="nvme-cli"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp"
source="$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/nvme-cli/archive/v${pkgver}.tar.gz
musl-fix.patch
"
@@ -27,6 +26,16 @@ package() {
make PREFIX="/usr" DESTDIR="$pkgdir" install
}
+bashcomp() {
+ depends=""
+ pkgdesc="Bash completions for $pkgname"
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+
+ mkdir -p "$subpkgdir"/usr/share/bash-completion/completions
+ mv "$pkgdir"/etc/bash_completion.d/nvme \
+ "$subpkgdir"/usr/share/bash-completion/completions/$pkgname || return 1
+}
+
md5sums="450b5c381c83df8f117824e7d0fe0076 nvme-cli-1.1.tar.gz
f8e92a9d93b8cde78b82ad40f89f2c19 musl-fix.patch"
sha256sums="22883719cbab86d52e8d4755e86ebd70476416e87442385a79b31c981bd60de1 nvme-cli-1.1.tar.gz