40 lines
1.3 KiB
Bash
40 lines
1.3 KiB
Bash
# Template file for 'libblockdev'
|
|
pkgname=libblockdev
|
|
version=2.28
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config python3"
|
|
makedepends="cryptsetup-devel device-mapper-devel dmraid-devel libbytesize-devel
|
|
libglib-devel libkmod-devel libparted-devel nss-devel
|
|
volume_key-devel libyaml-devel pcre2-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/2.x-branch/NEWS.rst"
|
|
distfiles="https://github.com/storaged-project/libblockdev/releases/download/${version}-1/libblockdev-${version}.tar.gz"
|
|
checksum=82c9c841e28a74fecadedebfae6a772df623cecdf652e5376650fa26da5b7df4
|
|
conf_files="/etc/libblockdev/conf.d/10-lvm-dbus.cfg
|
|
/etc/libblockdev/conf.d/00-default.cfg"
|
|
|
|
CFLAGS="-Wl,-lpcre2-8"
|
|
|
|
#ndctl not present on ppc
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc|ppc-musl)
|
|
configure_args+=" --without-nvdimm" ;;
|
|
*)
|
|
makedepends+=" libndctl-devel" ;;
|
|
esac
|
|
|
|
libblockdev-devel_package() {
|
|
depends="libblockdev>=${version}_${revision} ${makedepends}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|