packages/libnvme/PKGBUILD

30 lines
798 B
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Morten Linderud <foxboron@archlinux.org>
pkgname=libnvme
pkgver=1.11.1
pkgrel=2
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')
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/${pkgname}/archive/v${pkgver}.tar.gz"
)
sha256sums=('6d5d8ba2cc4c94a61a994c9f7f25b3b26ef973fb5c0daa37729890903f37a1f1')
build() {
cd "${pkgname}-${pkgver}"
arch-meson \
-Dlibdbus=auto \
-Ddocs-build=true \
.build
}
package() {
cd "${pkgname}-${pkgver}"
DESTDIR="$pkgdir" meson install -C .build
}