# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=libnvme
pkgver=1.9
pkgrel=1
pkgdesc="C Library for NVM Express on Linux"
arch=('x86_64')
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=('455867060d2b7563eab59fe21779dff469d98465028997178c7efbe4b8763206')

build() {
	cd "${pkgname}-${pkgver}"
    arch-meson \
	-Dlibdbus=auto \
	-Ddocs-build=true \
	.build
}

package() {
	cd "${pkgname}-${pkgver}"
	DESTDIR="$pkgdir" meson install -C .build
}
