blob: 5b5d51c129f7d7e4e12f65dfc769b1e338bab2eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Libguestfs: Installer: Arch
# Contributor: Peter Wu <peter@lekensteyn.nl>
# Contributor: Evaggelos Balaskas <eblaskas _AT_ ebalaskas _DOT_ gr>
# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Maintainer: Nikos Skalkotos <skalkoto (at) Gmail.com>
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"
}
|