2016-08-05 22:12:30 +00:00
|
|
|
# Template file for 'libguestfs'
|
|
|
|
pkgname=libguestfs
|
2017-07-19 05:54:43 +00:00
|
|
|
version=1.37.18
|
2017-02-12 11:11:09 +00:00
|
|
|
revision=1
|
2016-08-05 22:12:30 +00:00
|
|
|
_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)
|
2016-12-17 11:46:03 +00:00
|
|
|
$(vopt_enable php) $(vopt_enable lua) $(vopt_enable fuse)"
|
2016-08-05 22:12:30 +00:00
|
|
|
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)"
|
2017-04-13 18:27:06 +00:00
|
|
|
makedepends="ncurses-devel pcre-devel augeas-devel libxml2-devel gettext-devel file-devel
|
2016-08-05 22:12:30 +00:00
|
|
|
yajl-devel perl $(vopt_if ruby ruby-devel) $(vopt_if python python-devel)
|
2016-12-17 11:46:03 +00:00
|
|
|
$(vopt_if php php-devel) $(vopt_if lua lua-devel) $(vopt_if fuse fuse-devel)"
|
2016-08-05 22:12:30 +00:00
|
|
|
short_desc="Access and modify virtual machine disk image"
|
2017-04-06 16:52:20 +00:00
|
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
2016-08-05 22:12:30 +00:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://libguestfs.org"
|
|
|
|
distfiles="http://libguestfs.org/download/$_version_short-development/$pkgname-$version.tar.gz"
|
2017-07-19 05:54:43 +00:00
|
|
|
checksum=c45501365fd192066075eda4f98234d438beb513ba3b8dbe146688108dd191bb
|
2016-08-05 22:12:30 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2016-12-17 11:46:03 +00:00
|
|
|
build_options="ruby python go php lua fuse"
|
|
|
|
build_options_default="ruby fuse"
|
2016-08-05 22:12:30 +00:00
|
|
|
desc_option_ruby="include ruby support"
|
|
|
|
desc_option_go="include golang support"
|
|
|
|
desc_option_php="include php support"
|
2016-12-17 11:46:03 +00:00
|
|
|
desc_option_fuse="include fuse support"
|
2016-08-05 22:12:30 +00:00
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
sed -i 's|LD = @LD@|LD = cc|g' perl/Makefile.in
|
2017-02-06 17:39:53 +00:00
|
|
|
sed -i 's|CCLD = $(CC)|CCLD = cc -lncursesw|g' fish/Makefile.in
|
|
|
|
|
2016-08-05 22:12:30 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|