summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Percival2015-08-05 22:41:31 +0800
committerScott Percival2015-08-05 22:41:31 +0800
commit3ae4304053b210773b4ec25dd5516d6ab37186a9 (patch)
treedd8db791f2581d253971abcd1b76ecaa35ac6152
downloadaur-3ae4304053b210773b4ec25dd5516d6ab37186a9.tar.gz
initial import
-rw-r--r--.SRCINFO36
-rw-r--r--PKGBUILD59
-rw-r--r--dosbox-128.pngbin0 -> 35632 bytes
-rw-r--r--dosbox-16.pngbin0 -> 1018 bytes
-rw-r--r--dosbox-48.pngbin0 -> 5537 bytes
-rw-r--r--dosbox-sdl2.desktop10
-rw-r--r--dosbox-sdl2.install18
-rw-r--r--dosbox_sdl2_20150713.diff.gzbin0 -> 103245 bytes
8 files changed, 123 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7d3edb30378
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,36 @@
+pkgbase = dosbox-sdl2
+ pkgdesc = Emulator with builtin DOS for running DOS Games (SDL2)
+ pkgver = 0.74.3925
+ pkgrel = 1
+ url = http://www.vogons.org/viewtopic.php?f=32&t=34770
+ install = dosbox-sdl2.install
+ arch = x86_64
+ arch = i686
+ license = GPL
+ makedepends = subversion
+ depends = sdl2
+ depends = sdl2_net
+ depends = sdl_sound-hg
+ depends = zlib
+ depends = libgl
+ depends = libpng
+ depends = alsa-lib
+ depends = gcc-libs
+ depends = hicolor-icon-theme
+ provides = dosbox
+ conflicts = dosbox
+ source = dosbox-sdl2::svn+https://dosbox.svn.sourceforge.net/svnroot/dosbox/dosbox/trunk#revision=3925
+ source = dosbox_sdl2_20150713.diff.gz
+ source = dosbox-128.png
+ source = dosbox-48.png
+ source = dosbox-16.png
+ source = dosbox-sdl2.desktop
+ sha256sums = SKIP
+ sha256sums = 4a1f2b4de5aef0ac8fe234c843db9adcfd5465c20f0cad02136f4160b576f410
+ sha256sums = 228593e97732eaa31e0202b7d46da9d7529672369c17312db3f97784601b5d81
+ sha256sums = e71a3984170b3bf7af7d9cfbec0752187d70be76602721a1227b60980d7c380a
+ sha256sums = e657254e56dd7d66cb1cefbf37f0f360e13a221bc60b1638c00dcda508f7fd56
+ sha256sums = 7c8db8a5a475f54283748b539b50fa49b59a87c5ff80e94e82520530b996f871
+
+pkgname = dosbox-sdl2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..18f26447de4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Scott Percival <code@moral.net.au>
+# Contributor: Limao Luo <luolimao+AUR@gmail.com>
+# Contributor: Jose Valecillos <valecillosjg@gmail.com>
+
+pkgname=dosbox-sdl2
+_svn_rev=3925
+pkgver=0.74.$_svn_rev
+pkgrel=1
+pkgdesc="Emulator with builtin DOS for running DOS Games (SDL2)"
+arch=("x86_64" "i686")
+depends=("sdl2" "sdl2_net" "sdl_sound-hg" "zlib" "libgl" "libpng" "alsa-lib" "gcc-libs" "hicolor-icon-theme")
+makedepends=("subversion")
+provides=("dosbox")
+conflicts=("dosbox")
+url="http://www.vogons.org/viewtopic.php?f=32&t=34770"
+license=("GPL")
+source=("$pkgname::svn+https://dosbox.svn.sourceforge.net/svnroot/dosbox/dosbox/trunk#revision=$_svn_rev"
+ "dosbox_sdl2_20150713.diff.gz"
+ "dosbox-128.png"
+ "dosbox-48.png"
+ "dosbox-16.png"
+ "dosbox-sdl2.desktop"
+)
+sha256sums=("SKIP"
+ "4a1f2b4de5aef0ac8fe234c843db9adcfd5465c20f0cad02136f4160b576f410"
+ "228593e97732eaa31e0202b7d46da9d7529672369c17312db3f97784601b5d81"
+ "e71a3984170b3bf7af7d9cfbec0752187d70be76602721a1227b60980d7c380a"
+ "e657254e56dd7d66cb1cefbf37f0f360e13a221bc60b1638c00dcda508f7fd56"
+ "7c8db8a5a475f54283748b539b50fa49b59a87c5ff80e94e82520530b996f871"
+)
+install="dosbox-sdl2.install"
+
+build() {
+ ln -sf /usr/include/SDL/SDL_sound.h SDL_sound.h
+ export C_INCLUDE_PATH="$srcdir"
+ export CPLUS_INCLUDE_PATH="$srcdir"
+
+ cd $pkgname/
+ if [ ! -d "src/sdl_cdrom" ]; then
+ cat "$srcdir"/dosbox_sdl2_20150713.diff.gz | gunzip | patch -p0
+ fi
+
+ sh autogen.sh
+ ./configure --prefix=/usr --with-sdl=sdl2 --sysconfdir=/etc/dosbox
+ make
+}
+
+
+package() {
+ make -C $pkgname DESTDIR="$pkgdir" install
+
+ # Fix invalid permissions FS#10732
+ chmod 755 "$pkgdir"/usr/share/man/man1
+
+ for i in 16 48 128; do
+ install -Dm644 "$srcdir"/dosbox-$i.png "$pkgdir"/usr/share/icons/hicolor/${i}x$i/apps/dosbox.png
+ done
+ desktop-file-install $pkgname.desktop --dir "$pkgdir"/usr/share/applications/
+}
diff --git a/dosbox-128.png b/dosbox-128.png
new file mode 100644
index 00000000000..5beb624002b
--- /dev/null
+++ b/dosbox-128.png
Binary files differ
diff --git a/dosbox-16.png b/dosbox-16.png
new file mode 100644
index 00000000000..2f27d70c85a
--- /dev/null
+++ b/dosbox-16.png
Binary files differ
diff --git a/dosbox-48.png b/dosbox-48.png
new file mode 100644
index 00000000000..3b8e06a5412
--- /dev/null
+++ b/dosbox-48.png
Binary files differ
diff --git a/dosbox-sdl2.desktop b/dosbox-sdl2.desktop
new file mode 100644
index 00000000000..8dc7fa77d1d
--- /dev/null
+++ b/dosbox-sdl2.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=DOSBox
+Comment=DOS Emulator
+Comment[es]=Emulador de DOS
+Comment[fr]=Emulateur DOS
+Exec=dosbox
+Icon=dosbox
+Terminal=false
+Categories=System;Emulator;Game;
diff --git a/dosbox-sdl2.install b/dosbox-sdl2.install
new file mode 100644
index 00000000000..a8326da4ac2
--- /dev/null
+++ b/dosbox-sdl2.install
@@ -0,0 +1,18 @@
+post_install() {
+ /usr/bin/update-desktop-database
+ gtk-update-icon-cache -f '/usr/share/icons/hicolor'
+}
+
+post_upgrade() {
+ /usr/bin/update-desktop-database
+ gtk-update-icon-cache -f '/usr/share/icons/hicolor'
+}
+
+post_remove() {
+ /usr/bin/update-desktop-database
+ gtk-update-icon-cache -f '/usr/share/icons/hicolor'
+}
+
+op=$1
+shift
+$op $*
diff --git a/dosbox_sdl2_20150713.diff.gz b/dosbox_sdl2_20150713.diff.gz
new file mode 100644
index 00000000000..668cfd5c62d
--- /dev/null
+++ b/dosbox_sdl2_20150713.diff.gz
Binary files differ