summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD55
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2880e19e149
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = bochs-sdl
+ pkgdesc = A portable x86 PC emulation software package, including GUI debugger, with sdl support
+ pkgver = 2.6.9
+ pkgrel = 3
+ url = http://bochs.sourceforge.net/
+ arch = x86_64
+ license = LGPL
+ depends = gcc-libs
+ depends = libxrandr
+ depends = libxpm
+ depends = gtk2
+ provides = bochs
+ conflicts = bochs
+ source = https://downloads.sourceforge.net/sourceforge/bochs/bochs-2.6.9.tar.gz
+ md5sums = f6670c56ac49af36174e254e82528d5f
+
+pkgname = bochs-sdl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4e78bda2474
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Phi11ipus <phi11ipus AT protonmail DOT com
+# Modified from PKGBUILD in official repositories
+
+pkgname=bochs-sdl
+pkgver=2.6.9
+pkgrel=3
+pkgdesc="A portable x86 PC emulation software package, including GUI debugger, with sdl support"
+arch=('x86_64')
+url="http://bochs.sourceforge.net/"
+license=('LGPL')
+depends=('gcc-libs' 'libxrandr' 'libxpm' 'gtk2')
+conflicts=('bochs')
+provides=('bochs')
+source=("https://downloads.sourceforge.net/sourceforge/bochs/bochs-$pkgver.tar.gz")
+md5sums=('f6670c56ac49af36174e254e82528d5f')
+
+prepare() {
+ cd "$srcdir/bochs-$pkgver"
+ # 4.X kernel is basically 3.20
+ sed -i 's/2\.6\*|3\.\*)/2.6*|3.*|4.*)/' configure*
+}
+
+build() {
+ cd "$srcdir/bochs-$pkgver"
+
+ ./configure \
+ --prefix=/usr \
+ --without-wx \
+ --with-x11 \
+ --with-x \
+ --with-term \
+ --disable-docbook \
+ --enable-cpu-level=6 \
+ --enable-fpu \
+ --enable-3dnow \
+ --enable-disasm \
+ --enable-smp \
+ --enable-x86-64 \
+ --enable-avx \
+ --enable-long-phy-address \
+ --enable-disasm \
+ --enable-pcidev \
+ --enable-usb \
+ --enable-debugger \
+ --with-sdl
+ sed -i 's/^LIBS = /LIBS = -lpthread/g' Makefile
+ make -j 1
+}
+
+package() {
+ cd "$srcdir/bochs-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 .bochsrc "$pkgdir/etc/bochsrc-sample.txt"
+}
+