void-packages/srcpkgs/libnvme/template

41 lines
1.1 KiB
Bash

# Template file for 'libnvme'
pkgname=libnvme
version=1.1
revision=2
build_style=meson
configure_args="-Ddocs=man"
hostmakedepends="pkg-config swig"
makedepends="libuuid-devel json-c-devel openssl-devel python3-devel"
checkdepends="perl"
short_desc="C Library for NVM Express on Linux"
maintainer="Subhaditya Nath <sn03.general@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/linux-nvme/libnvme"
distfiles="https://github.com/linux-nvme/libnvme/archive/v${version}.tar.gz"
checksum=d000181356513733671409c747c88826155b60f45f76e7289d6bbf27a8f851b0
libnvme-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
depends+=" json-c-devel libuuid-devel openssl-devel" # otherwise 'pkgconf libnvme' doesn't work
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libnvme-doc_package() {
short_desc+=" - documentation"
pkg_install() {
vmove usr/share
}
}
python3-libnvme_package() {
short_desc+=" - Python3 bindings"
pkg_install() {
vmove "usr/lib/python*"
}
}