void-packages/srcpkgs/libnvme/template

41 lines
1.0 KiB
Bash

# Template file for 'libnvme'
pkgname=libnvme
version=1.10
revision=1
build_style=meson
configure_args="-Ddocs=man"
hostmakedepends="pkg-config swig tar xz"
makedepends="json-c-devel openssl-devel python3-devel"
checkdepends="perl"
short_desc="C Library for NVM Express on Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/linux-nvme/libnvme"
changelog="https://github.com/linux-nvme/libnvme/releases"
distfiles="https://github.com/linux-nvme/libnvme/archive/v${version}.tar.gz"
checksum=add9efa968e8341459fcaa2d96f2594a6f871e1fb3f57c02ce1c8ba5424f3960
libnvme-devel_package() {
depends="${sourcepkg}>=${version}_${revision} json-c-devel openssl-devel"
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*"
}
}