* add libnvme

This commit is contained in:
Alexander Baldeck 2023-07-24 13:31:21 +02:00
parent 752ea10dc6
commit c1a6534be4
2 changed files with 48 additions and 0 deletions

20
libnvme/.SRCINFO Normal file
View File

@ -0,0 +1,20 @@
pkgbase = libnvme
pkgdesc = C Library for NVM Express on Linux
pkgver = 1.5
pkgrel = 1
url = https://github.com/linux-nvme/libnvme
arch = x86_64
license = LGPL2.1
makedepends = systemd
makedepends = meson
makedepends = asciidoc
makedepends = python
makedepends = swig
depends = json-c
depends = openssl
depends = keyutils
depends = dbus
source = libnvme-1.5.tar.gz::https://github.com/linux-nvme/libnvme/archive/v1.5.tar.gz
sha256sums = f73ba1edde059b2d5e7c1048ad4f895e6047bff241c94b34a7aff5894779d086
pkgname = libnvme

28
libnvme/PKGBUILD Normal file
View File

@ -0,0 +1,28 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Morten Linderud <foxboron@archlinux.org>
pkgname=libnvme
pkgver=1.5
pkgrel=1
pkgdesc="C Library for NVM Express on Linux"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://github.com/linux-nvme/libnvme"
license=('LGPL2.1')
makedepends=('systemd' 'meson' 'asciidoc' 'python' 'swig')
depends=('json-c' 'openssl' 'keyutils' 'dbus')
options=(!distcc)
source=("$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('f73ba1edde059b2d5e7c1048ad4f895e6047bff241c94b34a7aff5894779d086')
build() {
cd "${pkgname}-${pkgver}"
arch-meson \
-Dlibdbus=auto \
-Ddocs-build=true \
.build
}
package() {
cd "${pkgname}-${pkgver}"
DESTDIR="$pkgdir" meson install -C .build
}