mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-16 11:12:08 +02:00
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
# Contributor: Florian Heigl <florian.heigl@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=nvme-cli
|
|
pkgver=2.9.1
|
|
pkgrel=0
|
|
pkgdesc="NVM-Express user space tooling for Linux"
|
|
arch="all"
|
|
url="https://github.com/linux-nvme/nvme-cli"
|
|
license="GPL-2.0-or-later"
|
|
makedepends="
|
|
bash
|
|
libnvme-dev
|
|
linux-headers
|
|
meson
|
|
util-linux-dev
|
|
uuidgen
|
|
zlib-dev
|
|
"
|
|
checkdepends="
|
|
py3-nose2
|
|
"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-bash-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/nvme-cli/archive/v$pkgver.tar.gz
|
|
stdint.patch"
|
|
options="!check" # needs pci nvme stuff
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Ddocs=man \
|
|
-Dudevrulesdir=/usr/lib/udev/rules.d/ \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --print-errorlogs --no-rebuild -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
rm -rf "$pkgdir"/usr/lib/systemd
|
|
}
|
|
|
|
sha512sums="
|
|
c9c86e7567c2d4c59aff1eb9d18f4775923db3c81a89c628b819121c32150d4bc2d65d0dacac764c64594369890b380d0fd06bc7c1f83f4a7f3e71a51a6fee24 nvme-cli-2.9.1.tar.gz
|
|
3f9ae251a81d454149b79bd7079949d06743a01416472da742abf9c713f5108024d466bc3339cb67e2bc20435a9ec5e18dc01a6786c85493053f31f9f5408046 stdint.patch
|
|
"
|