diff options
-rw-r--r-- | community/nvme-cli/APKBUILD | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/community/nvme-cli/APKBUILD b/community/nvme-cli/APKBUILD index d284463dcb..8daf1d9ab3 100644 --- a/community/nvme-cli/APKBUILD +++ b/community/nvme-cli/APKBUILD @@ -1,28 +1,28 @@ # Contributor: Florian Heigl <florian.heigl@gmail.com> # Maintainer: Florian Heigl <florian.heigl@gmail.com> pkgname=nvme-cli -pkgver=1.8.1 +pkgver=1.9 pkgrel=0 pkgdesc="NVM-Express user space tooling for Linux" +options="!check" # Requires nose2 arch="all" url="https://github.com/linux-nvme/nvme-cli" -license="GPL" -depends="" -makedepends="$depends_dev linux-headers coreutils" -subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp" -source="$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/nvme-cli/archive/v${pkgver}.tar.gz +license="GPL-2.0-only" +makedepends="linux-headers coreutils util-linux-dev util-linux" +subpackages=" + $pkgname-doc + $pkgname-bash-completion:bashcomp:noarch + $pkgname-zsh-completion:zshcomp:noarch + " +source="$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/nvme-cli/archive/v$pkgver.tar.gz " - -builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$builddir" - make PREFIX="/usr" || return 1 + make PREFIX=/usr } package() { - cd "$builddir" - make PREFIX="/usr" DESTDIR="$pkgdir" install + make PREFIX=/usr DESTDIR="$pkgdir" install } bashcomp() { @@ -36,4 +36,13 @@ bashcomp() { rmdir "$pkgdir"/usr/share/bash-completion/completions } -sha512sums="b31690f6dbc1f88ebd461636b452b8dedc6e1f67e2fe9d088b1f1d2ddf634ab6ef8d628d2c7fdc6977587d9565deb816a1df8f4881759a12b030a190af5c9095 nvme-cli-1.8.1.tar.gz" +zshcomp() { + depends="" + pkgdesc="Zsh compltions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + install -Dm644 "$builddir"/completions/_nvme \ + "$subpkgdir"/usr/share/zsh/site-functions/_nvme +} + +sha512sums="3565b33bc39bde4480bbde5d46d75ea6907c0921884e8f39029b746f8383d3630942e405c61bcc3654bac5646bc86479b4b790e1b823ec83650649621bab6dac nvme-cli-1.9.tar.gz" |