Skip to content

Instantly share code, notes, and snippets.

@qiuwei
Created March 12, 2014 09:10
Show Gist options
  • Select an option

  • Save qiuwei/9503410 to your computer and use it in GitHub Desktop.

Select an option

Save qiuwei/9503410 to your computer and use it in GitHub Desktop.
# $Id: PKGBUILD 110725 2011-02-21 20:11:19Z tpowa $
# Maintainer: Tobias Powalowski <[email protected]>
pkgname=qemu-mit6828
pkgver=15497.04885f1
pkgrel=1
pkgdesc="QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation.This version is specified for MIT's operating system lesson(6.828)"
arch=('i686' 'x86_64')
license=('GPL2' 'LGPL2.1')
url="http://wiki.qemu.org/Index.html"
makedepends=('perl' 'git')
depends=('pixman' 'libjpeg' 'libpng' 'sdl' 'alsa-lib' 'nss' 'glib2'
'gnutls>=2.4.1' 'bluez-libs' 'vde2' 'util-linux' 'curl' 'libsasl'
'libgl' 'libpulse' 'libcap-ng' 'libaio' 'libseccomp'
'libiscsi' 'libcacard' 'spice')
source=("$pkgname"::'git+http://pdos.csail.mit.edu/6.828/qemu.git#branch=6.828-0.15')
pkgver() {
cd "$pkgname"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build()
{
cd ${srcdir}/${pkgname}
./configure --prefix=/usr --python=/usr/bin/python2 --target-list="i386-softmmu x86_64-softmmu"
sed -i '227d' qemu-doc.texi
sed -i '17 i\libcacard_libs+=-lpthread' libcacard/Makefile
sed -i '202 i\LIBS+=-lrt' Makefile.target
make
}
package() {
cd ${srcdir}/${pkgname}
make DESTDIR=${pkgdir} install
}
md5sums=('SKIP')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment