blob: 7c5a5492afbd492993e087033565ae060ea7fd1e (
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
|
# Maintainer: Refutationalist <archlinux@sammulvey.com>
pkgname=xen-qemu
_srcname=qemu
pkgver=9.0.0
pkgrel=1
pkgdesc="A xen-specific QEMU, built to qemu-builtin standards"
arch=("x86_64")
url="https://www.qemu.org"
license=(GPL2 LGPL2.1)
depends=(curl xen numactl) # lot of deps are apparently covered by xen
makedepends=(ninja meson python-packaging)
provides=(qemu-xen xen-qemu xen-qemu-builtin)
conflicts=(xen-qemu-builtin)
replaces=(xen-qemu-builtin)
source=(
https://download.qemu.org/qemu-${pkgver}.tar.xz{,.sig}
)
sha512sums=('1603517cd4c93632ba60ad7261eb67374f12a744bf58f10b0e8686e46d3a02d8b6bf58a0c617f23a1868084aaba6386c24341894f75539e0b816091718721427'
'SKIP')
validpgpkeys=('CEACC9E15534EBABB82D3FA03353C9CEF108B584') # Michael Roth <flukshun@gmail.com>
build() {
cd $srcdir
mkdir build
cd build
"${srcdir}/${_srcname}-${pkgver}/configure" \
--enable-xen \
--target-list=i386-softmmu \
--enable-trace-backends=log \
--prefix=/usr \
--libdir=/usr/lib/xen/lib \
--includedir=/usr/lib/xen/include \
--extra-cflags="-DXC_WANT_COMPAT_EVTCHN_API=1 -DXC_WANT_COMPAT_GNTTAB_API=1 -DXC_WANT_COMPAT_MAP_FOREIGN_API=1 -DXC_WANT_COMPAT_DEVICEMODEL_API=1" \
--extra-ldflags=-Wl,-rpath,/usr/lib/xen/lib \
--bindir=/usr/lib/xen/bin \
--datadir=/usr/share/qemu-xen \
--localstatedir=/var \
--docdir=/usr/lib/xen/share/doc \
--mandir=/usr/lib/xen/share/man \
--libexecdir=/usr/lib/xen/libexec \
--firmwarepath=/usr/lib/xen/share/qemu-firmware \
--disable-kvm \
--disable-docs \
--disable-guest-agent \
--python=python3 \
--cpu=x86_64
ninja
}
package() {
cd "${srcdir}/build"
# meson direct was failing me, but this worked.
# might be a backwards compatible thing
make DESTDIR="$pkgdir/" install
}
|