# Libguestfs: Installer: Arch # Contributor: Peter Wu # Contributor: Evaggelos Balaskas # Contributor: Xiao-Long Chen # Maintainer: Nikos Skalkotos pkgname=libguestfs pkgver=1.30.4 pkgver_short=${pkgver%.*} pkgrel=1 pkgdesc="Access and modify virtual machine disk image" arch=("i686" "x86_64") url="http://libguestfs.org" license=("GPL2" "LGPL2.1") backup=("etc/libguestfs-tools.conf" "etc/xdg/virt-builder/repos.d/libguestfs.conf" "etc/xdg/virt-builder/repos.d/libguestfs.gpg") # backup=("etc/libguestfs-tools.conf" "etc/php.d/guestfs_php.ini") install="appliance.install" _pythonver=2 depends=("qemu" # "febootstrap>=3.21" "augeas" "hivex>=1.3.2" "libconfig" "libvirt" "fuse" "file" "cpio" "wget") makedepends=("qemu" "pcre" "cdrkit" "libvirt" "libconfig" "libxml2" "gperf" "python${_pythonver}" "perl" "perl-string-shellquote" "perl-libintl-perl" "perl-sys-virt" # "lua" # "ghc" "ruby" # "erlang" # "gjs" # "php" # "gobject-introspection" "ocaml-findlib" "ocaml") optdepends=("python${_pythonver}: Python bindings" # "ruby: Ruby Bindings" # "gjs: Javascript Bindings for GNOME" # "php: PHP bindings" # "erlang: Erlang Bindings" # "ghc: Haskell Bindings" # "lua: Lua Bindings" "perl: Perl Bindings" "perl-sys-virt: Sys-Virt tools" "ocaml: Ocaml libs") provides=("guestfish=${pkgver}") options=() source=("http://libguestfs.org/download/${pkgver_short}-stable/${pkgname}-${pkgver}.tar.gz" "update-libguestfs-appliance") sha512sums=('24389308900f91052804b1aab555a757bcf99f1987d973df8212ca5c1919ae4a59ebbe358a9369c966f9f08fcc2c5a6b667c87cca442ab4a6e383abb4b54b4a6' '3529d8ffb430bf83f6ef345afe1c6fde9234721482fbf8453085d2c13b9d44bad7de77b84a1e4415d7dddf0831ff04129fdb437688f6661b43469886eda69260') check() { # test-lock fails, perhaps related to: # http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00059.html # test-thread_create failed too. : make check } build() { cd "${srcdir}/${pkgname}-${pkgver}" # Currently OCaml lua, erlang, php, haskel, ruby, ghc, GObject and java bindings # are disabled. If you want to create any of the aforementioned language # bindings uncomment the appropriate line in makedepends and remove the # --disable-* option in ./configure ./configure \ PYTHON=python$_pythonver \ --prefix=/usr \ --libdir=/usr/lib \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --disable-static \ --disable-probes \ --disable-appliance \ --disable-daemon \ --without-java \ --enable-introspection=no \ --disable-lua \ --disable-erlang \ --disable-php \ --disable-haskell \ --disable-ruby \ --disable-gobject \ --disable-golang make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install mkdir -p "$pkgdir/usr/lib/guestfs" "$pkgdir/var/cache/guestfs" install -Dm755 "${srcdir}/update-libguestfs-appliance" "${pkgdir}/usr/bin/update-libguestfs-appliance" }