void-packages/srcpkgs/libblockdev/template

44 lines
1.4 KiB
Bash

# Template file for 'libblockdev'
pkgname=libblockdev
version=3.0.4
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=49841ff92db0ab032931e6f2b5eab63e5969b0ddc14b067b60e46a6eb6c60e47
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"
}
}