void-packages/srcpkgs/libguestfs/template

54 lines
1.8 KiB
Bash
Raw Normal View History

# Template file for 'libguestfs'
pkgname=libguestfs
2016-10-13 08:48:23 +00:00
version=1.35.8
revision=1
_version_short=${version%.*}
build_style=gnu-configure
configure_args="--disable-static --disable-probes --disable-appliance
--disable-daemon --without-java --enable-introspection=no
--disable-erlang --disable-haskell --disable-gobject --without-gtk
$(vopt_enable ruby) $(vopt_enable python) $(vopt_enable go golang)
$(vopt_enable php) $(vopt_enable lua)"
hostmakedepends="cpio gperf cdrtools flex pkg-config automake libtool qemu git
ocaml ocaml-findlib perl-Module-Build perl
$(vopt_if ruby ruby) $(vopt_if python python) $(vopt_if go go) $(vopt_if php php) $(vopt_if lua lua)"
makedepends="ncurses-devel pcre-devel augeas-devel libxml2-devel gettext-devel
yajl-devel perl $(vopt_if ruby ruby-devel) $(vopt_if python python-devel)
$(vopt_if php php-devel) $(vopt_if lua lua-devel)"
short_desc="Access and modify virtual machine disk image"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://libguestfs.org"
distfiles="http://libguestfs.org/download/$_version_short-development/$pkgname-$version.tar.gz"
2016-10-13 08:48:23 +00:00
checksum=19a38ea3a66712fdc4d52e647e862cb47507ff3ab12b5a8759f069cd5b1d2405
conf_files="etc/libguestfs-tools.conf
etc/xdg/virt-builder/repos.d/libguestfs.conf
etc/xdg/virt-builder/repos.d/libguestfs.gpg"
nopie=yes
nocross=yes
only_for_archs="i686 x86_64"
build_options="ruby python go php lua"
build_options_default="ruby"
desc_option_ruby="include ruby support"
desc_option_go="include golang support"
desc_option_php="include php support"
pre_configure() {
sed -i 's|LD = @LD@|LD = cc|g' perl/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
}
}