1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Robin Broda <coderobe @ archlinux.org>
3 # Contributor: Peter Wu <peter@lekensteyn.nl>
4 # Contributor: Evaggelos Balaskas <eblaskas _AT_ ebalaskas _DOT_ gr>
5 # Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
6 # Contributor: Nikos Skalkotos <skalkoto (at) Gmail.com>
11 pkgdesc="Access and modify virtual machine disk images"
13 url="https://libguestfs.org/"
14 license=(GPL2 LGPL2.1)
15 # NOTE: see appliance/packagelist.in
64 "${_appliancedeps[@]}"
89 checkdepends=(linux ruby-test-unit)
91 'gobject-introspection: GObject-Introspection Bindings'
92 'java-runtime: for Java bindings'
93 'ocaml: OCaml Bindings'
95 'python: Python Bindings'
96 'ruby: for Ruby bindings'
98 provides=(libguestfs.so libguestfs-gobject-1.0.so)
99 backup=(etc/libguestfs-tools.conf)
101 http://download.libguestfs.org/${pkgver%.*}-stable/$pkgname-$pkgver.tar.gz{,.sig}
102 $pkgname-1.48.1-disable_php_tests.patch
104 sha256sums=('0c03cdb2f3460fa492e8423a003e3aa7d51a1311906e01467d1fb90ebf336ac5'
106 '151d7ab43e7150c7d645eb0bad9681ce5ecc59cae44f254f08ef617ce3d9932f')
107 b2sums=('22359ed4b55e29f985dbbbc4f0337eaec32f21a1413bd778656c3f0270891bec520a0b9590e104836eaf9367aeb9ac681b0bf85852fb7a2059da3f7062bc5111'
109 '2f7c429875d80b2b3a70286f83764ce6ed8be86055232fc059ab55ebf8393f9d29a2241401c7ab55af7ba9180ea85909647fe06ca51880f93bc66b488bcec78c')
110 validpgpkeys=('F7774FB1AD074A7E8C8767EA91738F73E1B768A0') # Richard W.M. Jones <rjones@redhat.com>
113 # disable php tests, as missing arginfo definition makes them fail: https://github.com/libguestfs/libguestfs/issues/78
114 patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-1.48.1-disable_php_tests.patch
122 # TODO: build haskell bindings
123 CFLAGS+=" -ffat-lto-objects" \
130 --with-extra-packages="libldm systemd-sysvcompat openssh qemu" \
131 --with-guestfs-path=/usr/lib/guestfs
137 LIBGUESTFS_TRACE=1 make -k check -C $pkgname-$pkgver
141 make INSTALLDIRS=vendor DESTDIR="$pkgdir" install -C $pkgname-$pkgver