summaryrefslogtreecommitdiff
path: root/community-staging/dosbox
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-27 23:15:06 +0000
committerroot <root@rshg054.dnsready.net>2012-01-27 23:15:06 +0000
commit2493f16093b14a81e949bd6a1b89724cb931807d (patch)
treeb93ed56dddfb9e067d0e29e363bc8e98286b9ac8 /community-staging/dosbox
parent3741146d50cb93e8985f8aac937e36d35ee76446 (diff)
Fri Jan 27 23:15:06 UTC 2012
Diffstat (limited to 'community-staging/dosbox')
-rw-r--r--community-staging/dosbox/PKGBUILD45
-rw-r--r--community-staging/dosbox/dosbox.desktop10
-rw-r--r--community-staging/dosbox/dosbox.pngbin0 -> 4691 bytes
-rw-r--r--community-staging/dosbox/gcc46.patch12
4 files changed, 67 insertions, 0 deletions
diff --git a/community-staging/dosbox/PKGBUILD b/community-staging/dosbox/PKGBUILD
new file mode 100644
index 000000000..7c8e8f2b1
--- /dev/null
+++ b/community-staging/dosbox/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 62786 2012-01-26 20:55:35Z ebelanger $
+# Maintainer :
+# Contribute : Jelle van der Waa <jelle@vdwaa.nl>
+# Contributor: James Rayner <james@archlinux.org>
+# Contributor: Ben <ben@benmazer.net>
+
+pkgname=dosbox
+pkgver=0.74
+pkgrel=3
+pkgdesc="An emulator with builtin DOS for running DOS Games"
+arch=('i686' 'x86_64')
+url="http://dosbox.sourceforge.net/"
+license=('GPL')
+depends=('sdl_net' 'zlib' 'sdl_sound' 'libgl' 'libpng' 'alsa-lib' 'gcc-libs')
+makedepends=('mesa')
+source=("http://downloads.sourceforge.net/${pkgname}/$pkgname-$pkgver.tar.gz"
+ 'dosbox.png' 'dosbox.desktop' 'gcc46.patch')
+
+build(){
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np1 -i "$srcdir/gcc46.patch"
+ sed -i 's/png_check_sig/png_sig_cmp/' configure
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/dosbox
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+
+ # install docs, make does not install them
+ install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README
+ install -Dm644 docs/README.video "$pkgdir"/usr/share/doc/$pkgname/README.video
+
+ install -Dm644 "${srcdir}/${pkgname}.png" \
+ "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ install -Dm644 "${srcdir}/${pkgname}.desktop" \
+ "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+}
+md5sums=('b9b240fa87104421962d14eee71351e8'
+ '2aac25fc06979e375953fcc36824dc5e'
+ '85169ca599028bee8e29e0b3b7b34dd8'
+ '3fba2e3c7c43290319b2928f40ed30e5')
diff --git a/community-staging/dosbox/dosbox.desktop b/community-staging/dosbox/dosbox.desktop
new file mode 100644
index 000000000..dbaf05ced
--- /dev/null
+++ b/community-staging/dosbox/dosbox.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=dosbox Emulator
+GenericName=Emulator
+Comment=An emulator to run old DOS games
+Icon=dosbox
+Exec=dosbox
+Terminal=false
+Categories=Emulator;Application;
diff --git a/community-staging/dosbox/dosbox.png b/community-staging/dosbox/dosbox.png
new file mode 100644
index 000000000..b8a917986
--- /dev/null
+++ b/community-staging/dosbox/dosbox.png
Binary files differ
diff --git a/community-staging/dosbox/gcc46.patch b/community-staging/dosbox/gcc46.patch
new file mode 100644
index 000000000..eae9ae63e
--- /dev/null
+++ b/community-staging/dosbox/gcc46.patch
@@ -0,0 +1,12 @@
+diff -aur dosbox-0.74/include/dos_inc.h dosbox-0.74.new//include/dos_inc.h
+--- dosbox-0.74/include/dos_inc.h 2010-05-10 17:43:54.000000000 +0000
++++ dosbox-0.74.new//include/dos_inc.h 2011-06-17 20:42:43.982548979 +0000
+@@ -28,6 +28,8 @@
+ #include "mem.h"
+ #endif
+
++#include <stddef.h> //for offsetof
++
+ #ifdef _MSC_VER
+ #pragma pack (1)
+ #endif