mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 19:17:15 +08:00
New qemu
This commit is contained in:
parent
ab268ef936
commit
f4ecfa12a3
@ -5,13 +5,13 @@
|
||||
|
||||
pkgname=qemu
|
||||
_pkgname=kvm
|
||||
pkgver=1.5.1
|
||||
pkgver=1.6.0
|
||||
pkgrel=1
|
||||
pkgdesc="Generic and open source processor emulator using dynamic translation to improve speed."
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL2' 'LGPL2.1')
|
||||
url="http://www.linux-kvm.org"
|
||||
depends=('alsa-lib' 'bluez' 'curl' 'gnutls>=2.4.1' 'libjpeg' 'libpng' 'libpulse' 'libsasl' 'sdl' 'util-linux-ng' 'vde2')
|
||||
depends=('alsa-lib' 'bluez' 'curl' 'gnutls>=2.4.1' 'libjpeg' 'libpng' 'libpulse' 'libsasl' 'sdl' 'util-linux-ng' 'vde2' 'pixman' 'libaio' 'libseccomp' 'seabios')
|
||||
makedepends=('git' 'iasl' 'perl' 'python2' 'texi2html')
|
||||
backup=('etc/qemu/target-x86_64.conf')
|
||||
provides=("qemu-kvm=${pkver}")
|
||||
@ -21,39 +21,24 @@ options=(!strip)
|
||||
install='qemu-kvm.install'
|
||||
source=("http://wiki.qemu.org/download/${pkgname}-${pkgver}.tar.bz2"
|
||||
"65-kvm.rules")
|
||||
md5sums=('b56e73bdcfdb214d5c68e13111aca96f'
|
||||
md5sums=('f3f39308472d629aca57a255a0c91ba9'
|
||||
'b316a066d2f1bb57d8f5b7ea1d0d1caf')
|
||||
|
||||
|
||||
build() {
|
||||
cd $srcdir/$pkgname-$_pkgver
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
|
||||
# TODO: we should enable seccomp, but we don't have libseccomp yet
|
||||
# TODO: same goes for libaio
|
||||
./configure --prefix=/usr --sysconfdir=/etc --audio-drv-list='pa alsa sdl'\
|
||||
--python=/usr/bin/python2 --smbd=/usr/bin/smbd \
|
||||
--enable-mixemu --libexecdir=/usr/lib/qemu \
|
||||
--disable-gtk --disable-linux-aio --disable-seccomp
|
||||
--disable-gtk
|
||||
make
|
||||
|
||||
# Use latest seabios version
|
||||
# https://bugs.archlinux.org/task/27616
|
||||
cd "${srcdir}/"
|
||||
git clone git://git.seabios.org/seabios.git
|
||||
cd seabios
|
||||
make clean
|
||||
make
|
||||
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$pkgname-$_pkgver
|
||||
cd "${srcdir}/${pkgname}-${_pkgver}"
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
# Use latest seabios version
|
||||
# https://bugs.archlinux.org/task/27616
|
||||
cp "${srcdir}/seabios/out/bios.bin" "${pkgdir}/usr/share/qemu/bios.bin"
|
||||
|
||||
chmod u+s "${pkgdir}/usr/lib/qemu/qemu-bridge-helper"
|
||||
# add sample config
|
||||
echo "allow br0" > ${pkgdir}/etc/qemu/bridge.conf.sample
|
||||
|
Loading…
Reference in New Issue
Block a user