mv nvme-cli

This commit is contained in:
joborun linux 2023-01-12 00:21:08 +02:00
parent ac410b5889
commit 7d9d7d2198
3 changed files with 64 additions and 0 deletions

50
nvme-cli/PKGBUILD-git Normal file
View file

@ -0,0 +1,50 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=nvme-cli-git
pkgver=r3013.2aa27212
pkgrel=02
pkgdesc='NVM-Express user space tooling for Linux'
arch=('x86_64')
url="https://github.com/linux-nvme/nvme-cli"
depends=('util-linux' )
makedepends=('meson' 'git')
provides=('nvme-cli')
conflicts=('nvme-cli')
source=("$pkgname::git+https://github.com/linux-nvme/nvme-cli.git")
install=nvme-cli-git.install
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${pkgname}"
meson setup \
--prefix /usr \
--libexecdir lib \
--sbindir bin \
--buildtype plain \
--auto-features enabled \
-D b_lto=true -D b_pie=true \
-D udevrulesdir=lib/udev/rules.d \
.build
}
package() {
cd "${pkgname}"
DESTDIR="$pkgdir" meson install -C .build
rm -rf $pkgdir/usr/lib/systemd
}
#---- license gpg-key sha256sums ----
license=('GPL')
sha256sums=('SKIP')

6
nvme-cli/deps-git Normal file
View file

@ -0,0 +1,6 @@
meson
git
python-nose2
autopep8
python-flake8-isort
nvme-cli

View file

@ -0,0 +1,8 @@
post_install(){
if [ ! -f /etc/nvme/hostnqn ]; then
nvme gen-hostnqn > /etc/nvme/hostnqn
fi
if [ ! -f /etc/nvme/hostid ]; then
uuidgen > /etc/nvme/hostid
fi
}