desktop/qemu-kvm/PKGBUILD

66 lines
2.2 KiB
Bash
Raw Normal View History

2011-10-15 21:51:06 +08:00
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
pkgname=qemu
2011-10-15 21:51:06 +08:00
_pkgname=kvm
2013-10-10 17:38:06 +08:00
pkgver=1.6.1
pkgrel=1
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')
url="http://www.linux-kvm.org"
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')
2012-03-12 02:24:48 +08:00
makedepends=('git' 'iasl' 'perl' 'python2' 'texi2html')
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"
2011-10-15 21:51:06 +08:00
"65-kvm.rules")
2013-10-10 17:38:06 +08:00
md5sums=('3a897d722457c5a895cd6ac79a28fda0'
2011-10-15 21:51:06 +08:00
'b316a066d2f1bb57d8f5b7ea1d0d1caf')
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
2011-10-15 21:51:06 +08:00
./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 \
2013-08-26 22:51:56 +08:00
--disable-gtk
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
ln -s qemu-system-x86_64 "${pkgdir}/usr/bin/qemu-kvm"
# symbolic link for to qemu binary for emulator apps
ln -s qemu-system-x86_64 "${pkgdir}/usr/bin/qemu"
# symbolic link for to qemu binary for emulator apps
ln -s qemu-system-x86_64 "${pkgdir}/usr/bin/kvm"
2012-03-12 02:24:48 +08:00
# install udev rules
install -D -m644 "${srcdir}/65-kvm.rules" \
"${pkgdir}/lib/udev/rules.d/65-kvm.rules"
# 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
}