void-packages/srcpkgs/libguestfs/template

61 lines
2.3 KiB
Bash

# Template file for 'libguestfs'
pkgname=libguestfs
version=1.44.1
revision=3
_version_short=${version%.*}
build_style=gnu-configure
make_install_args="INSTALLDIRS=vendor"
configure_args="--disable-static --disable-probes --disable-appliance
--disable-daemon --without-java --enable-introspection=no
--disable-erlang --disable-haskell --disable-gobject --without-gtk
--with-distro=VoidLinux ac_cv_prog_NCURSES_CONFIG=ncursesw6-config
$(vopt_enable ruby) $(vopt_enable python) $(vopt_enable go golang)
$(vopt_enable php) $(vopt_enable lua) $(vopt_enable fuse)"
hostmakedepends="cpio gperf cdrtools flex pkg-config automake libtool qemu git
ocaml ocaml-findlib perl-Module-Build perl hivex supermin
$(vopt_if ruby ruby) $(vopt_if python python3) $(vopt_if go go) $(vopt_if php php) $(vopt_if lua lua53)"
makedepends="ncurses-devel pcre-devel augeas-devel libxml2-devel gettext-devel file-devel jansson-devel
yajl-devel perl libtirpc-devel $(vopt_if ruby ruby-devel) $(vopt_if python python3-devel)
$(vopt_if php php-devel) $(vopt_if lua lua53-devel) $(vopt_if fuse fuse-devel)"
short_desc="Access and modify virtual machine disk image"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license=" GPL-2.0-or-later"
homepage="http://libguestfs.org"
distfiles="http://libguestfs.org/download/${_version_short}-stable/${pkgname}-${version}.tar.gz"
checksum=72b7dcdd32da1c17c932cf5a0a70b3bd68bc93e94828ad66a539f2e616adb025
conf_files="etc/libguestfs-tools.conf
etc/xdg/virt-builder/repos.d/libguestfs.conf
etc/xdg/virt-builder/repos.d/libguestfs.gpg"
nocross=yes
archs="i686* x86_64* ppc64le*"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
broken="https://build.voidlinux.org/builders/x86_64-musl_builder/builds/35666/steps/shell_3/logs/stdio"
fi
build_options="ruby python go php lua fuse"
build_options_default="ruby fuse"
desc_option_ruby="include ruby support"
desc_option_go="include golang support"
desc_option_php="include php support"
desc_option_fuse="include fuse support"
pre_configure() {
sed -i 's|LD = @LD@|LD = cc|g' perl/Makefile.in
sed -i 's|CCLD = $(CC)|CCLD = cc -lncursesw|g' fish/Makefile.in
vbin ${FILESDIR}/update-libguestfs-appliance
}
libguestfs-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
}
}