44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
# Template file for 'libblockdev'
|
|
pkgname=libblockdev
|
|
version=3.1.1
|
|
revision=2
|
|
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=a5cb33a53ff5969067982704f45399d02555fdb2313ed0c56eac9555397dc2db
|
|
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"
|
|
}
|
|
}
|