jobextra/nvme-cli/PKGBUILD

60 lines
1.7 KiB
Bash

#!/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
pkgver=2.6
pkgrel=01
pkgdesc="NVM-Express user space tooling for Linux w/o systemd"
url="https://github.com/linux-nvme/nvme-cli"
# git is needed to provide the source with a workaround file to cover for the absense of libnvme.so
makedepends=('meson' 'asciidoc' 'xmlto' 'python-nose2' 'autopep8' 'python-flake8-isort' 'git' 'mypy' 'swig')
depends=('util-linux' 'libnvme')
#options=(debug strip) ## uncomment this line to produce debug pkg
options=(strip)
install=nvme-cli.install
# checkdepends=('python2-nose' 'python-nose')
source=("$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/${pkgname}/archive/v${pkgver}.tar.gz")
build() {
cd "${pkgname}-${pkgver}"
meson setup \
--prefix /usr \
--libexecdir lib \
--sbindir bin \
--sysconfdir /etc \
--buildtype plain \
--auto-features enabled \
-D b_lto=true -D b_pie=true \
-D docs=man -D docs-build=true \
-D systemddir=false \
-D udevrulesdir=lib/udev/rules.d \
.build
}
# Tests require a working NVME disk.
# check() {
# cd "${pkgname}-${pkgver}"
# make test
# }
package() {
cd "${pkgname}-${pkgver}"
DESTDIR="$pkgdir" meson install -C .build
rm -rf $pkgdir/usr/false
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
sha256sums=(7e2f11eb7a9c1b9343d537a32ae5c78f51de20cd4a6cdddb2bc2459c259b33d6) # nvme-cli-2.6.tar.gz
## 3c35127ee47523c1538beb027491ee44c1635926734b2b243bdcda6744f68e07 nvme-cli-2.6-01-x86_64.pkg.tar.lz