blob: a7e99f34bbe31aeef7890b2cc4863c30ca94240a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor: CyberLeo <cyberleo@cyberleo.net>
# Maintainer: CyberLeo <cyberleo@cyberleo.net>
pkgname=nvme-cli
pkgver=1.15
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-2.0-only"
makedepends="linux-headers coreutils util-linux-dev util-linux libuuid"
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
add-limits.patch"
build() {
make PREFIX=/usr
}
package() {
make PREFIX=/usr DESTDIR="$pkgdir" UDEVDIR=/usr/lib/udev install
rm -rf "$pkgdir"/usr/lib/systemd
}
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"/usr/share/bash-completion/completions/* \
"$subpkgdir"/usr/share/bash-completion/completions/
}
zshcomp() {
depends=""
pkgdesc="Zsh completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
mkdir -p "$subpkgdir/usr/share/zsh/site-functions"
mv "$pkgdir"/usr/share/zsh/site-functions/* \
"$subpkgdir"/usr/share/zsh/site-functions
}
sha512sums="
0614105153edf7217d4c428927423628b63f6bee034c59926370a13d433c9c3af217338fb6fe2f8bbf781fc17ebae0102e8c072371b7ea4324c18dfdffd40305 nvme-cli-1.15.tar.gz
cee0623c3b17c74edc365eed80b3a03086ccb68f4fe00a0cd13ee65f0602a1edb0eed64a352403dd71a25f2779dc410fd2497a17be1e565958a7616dd375da70 add-limits.patch
"
|