diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nvme-cli/APKBUILD | 15 |
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 |