desktop/qemu/PKGBUILD

65 lines
2.2 KiB
Bash
Raw Normal View History

pkgname=qemu
2011-10-15 21:51:06 +08:00
_pkgname=kvm
2015-05-01 10:47:41 +08:00
pkgver=2.3.0
2015-05-02 21:30:11 +08:00
pkgrel=2
2011-10-15 21:51:06 +08:00
pkgdesc="Generic and open source processor emulator using dynamic translation to improve speed."
2013-10-10 17:38:06 +08:00
arch=('x86_64')
2011-10-15 21:51:06 +08:00
license=('GPL2' 'LGPL2.1')
2014-04-18 23:03:16 +08:00
url="http://wiki.qemu.org/Index.html"
2013-08-28 02:37:41 +08:00
depends=('alsa-lib' 'bluez' 'curl' 'gnutls>=2.4.1' 'libjpeg' 'libpng' 'libpulse' 'libsasl' 'sdl' 'util-linux-ng' 'vde2' 'pixman' 'libaio' 'libseccomp')
2015-05-01 10:47:41 +08:00
makedepends=('git' 'iasl' 'perl' 'python2' 'texi2html' 'bluez-libs')
2011-10-15 21:51:06 +08:00
backup=('etc/qemu/target-x86_64.conf')
provides=("qemu-kvm=${pkver}")
conflicts=("qemu-kvm<${pkgver}")
2013-09-10 05:21:35 +08:00
replaces=("qemu-kvm<${pkgver}")
categories=('system')
2011-10-15 21:51:06 +08:00
options=(!strip)
install='qemu-kvm.install'
source=("http://wiki.qemu.org/download/${pkgname}-${pkgver}.tar.bz2"
2015-05-02 21:30:11 +08:00
"65-kvm.rules")
2015-05-01 10:47:41 +08:00
md5sums=('2fab3ea4460de9b57192e5b8b311f221'
2015-05-02 21:30:11 +08:00
'6c511f3ea77bde6b1a790c246da79b75')
2013-08-26 22:51:56 +08:00
2011-10-15 21:51:06 +08:00
build() {
2013-08-26 22:51:56 +08:00
cd $srcdir/$pkgname-$pkgver
2015-05-01 10:47:41 +08:00
./configure --prefix=/usr --sysconfdir=/etc --audio-drv-list='pa alsa sdl'\
--python=/usr/bin/python2 --smbd=/usr/bin/smbd \
2013-11-30 21:20:08 +08:00
--libexecdir=/usr/lib/qemu \
--disable-gtk \
--enable-linux-aio --enable-seccomp \
2015-05-01 10:47:41 +08:00
--enable-bluez --enable-modules \
2013-11-30 21:20:08 +08:00
--localstatedir=/var
2015-05-01 10:47:41 +08:00
make
2011-10-15 21:51:06 +08:00
}
package() {
2013-08-26 22:51:56 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2012-03-12 02:24:48 +08:00
make DESTDIR="${pkgdir}" install
2011-10-15 21:51:06 +08:00
chmod u+s "${pkgdir}/usr/lib/qemu/qemu-bridge-helper"
# add sample config
echo "allow br0" > ${pkgdir}/etc/qemu/bridge.conf.sample
2012-03-12 02:24:48 +08:00
# symbolic link for backwards compatibility
2015-05-01 10:47:41 +08:00
#ln -s qemu-system-x86_64 "${pkgdir}/usr/bin/qemu-kvm"
2012-03-12 02:24:48 +08:00
# symbolic link for to qemu binary for emulator apps
2015-05-01 10:47:41 +08:00
#ln -s qemu-system-x86_64 "${pkgdir}/usr/bin/qemu"
2012-03-12 02:24:48 +08:00
# symbolic link for to qemu binary for emulator apps
2015-05-01 10:47:41 +08:00
#ln -s qemu-system-x86_64 "${pkgdir}/usr/bin/kvm"
2015-05-02 21:30:11 +08:00
# remove conflicting /var/run directory
rm -r "${pkgdir}/var"
2012-03-12 02:24:48 +08:00
# install udev rules
install -D -m644 "${srcdir}/65-kvm.rules" \
2014-04-08 01:21:16 +08:00
"${pkgdir}/usr/lib/udev/rules.d/65-kvm.rules"
2012-03-12 02:24:48 +08:00
# strip scripts directory
find "${pkgdir}/usr/bin" -type f -perm -u+w 2>/dev/null | while read binary ; do
case "$(file -bi "$binary")" in
*application/x-executable*) # Binaries
/usr/bin/strip $STRIP_BINARIES "$binary";;
esac
done
2011-10-15 21:51:06 +08:00
}