void-packages/srcpkgs/libblockdev/template

44 lines
1.4 KiB
Bash

# Template file for 'libblockdev'
pkgname=libblockdev
version=3.1.0
revision=1
build_style=gnu-configure
make_check_target="test"
hostmakedepends="pkg-config python3-setuptools"
makedepends="cryptsetup-devel device-mapper-devel dmraid-devel libbytesize-devel
libglib-devel libkmod-devel libparted-devel libfdisk-devel nss-devel
volume_key-devel pcre2-devel e2fsprogs-devel libnvme-devel
keyutils-devel"
short_desc="Library for manipulating block devices"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/storaged-project/libblockdev"
# changelog needs to be adjusted on major version changes
changelog="https://raw.githubusercontent.com/storaged-project/libblockdev/master/NEWS.rst"
distfiles="https://github.com/storaged-project/libblockdev/releases/download/${version}-1/libblockdev-${version}.tar.gz"
checksum=41e4af66c9d78e795302d37825dfd88a4970f82da7b4ebe6487feba2afae44fb
conf_files="/etc/libblockdev/3/conf.d/10-lvm-dbus.cfg
/etc/libblockdev/3/conf.d/00-default.cfg"
# Requires root.
make_check=no
CFLAGS="-Wl,-lpcre2-8"
#ndctl not present on ppc
case "$XBPS_TARGET_MACHINE" in
ppc*)
configure_args+=" --without-nvdimm" ;;
*)
makedepends+=" libndctl-devel" ;;
esac
libblockdev-devel_package() {
depends="${sourcepkg}>=${version}_${revision} libglib-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}