summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD54
-rw-r--r--bsnes9
3 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5bf9f448f1e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = bsnes-plus-git
+ pkgdesc = debug-oriented fork of bsnes v073
+ pkgver = 0.73r127.a3d2120
+ pkgrel = 1
+ url = https://github.com/devinacker/bsnes-plus
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = mesa
+ makedepends = git
+ depends = libao
+ depends = libpulse
+ depends = openal
+ depends = qt4
+ depends = sdl
+ depends = xdialog
+ provides = bsnes-plus
+ conflicts = bsnes-plus
+ conflicts = bsnes-classic
+ source = git+https://github.com/devinacker/bsnes-plus.git
+ source = bsnes
+ sha1sums = SKIP
+ sha1sums = 8ee7fedf0a2aa081f57044eeaf52ba53806f7af6
+
+pkgname = bsnes-plus-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7761d76086e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Duck Hunt <vaporeon@tfwno.gf>
+
+pkgname=bsnes-plus-git
+pkgver=0.73r127.a3d2120
+pkgrel=1
+pkgdesc='debug-oriented fork of bsnes v073'
+arch=('i686' 'x86_64')
+url='https://github.com/devinacker/bsnes-plus'
+license=('GPL3')
+depends=('libao' 'libpulse' 'openal' 'qt4' 'sdl' 'xdialog')
+makedepends=('mesa' 'git')
+source=("git+${url}.git"
+ 'bsnes')
+sha1sums=('SKIP'
+ '8ee7fedf0a2aa081f57044eeaf52ba53806f7af6')
+conflicts=('bsnes-plus' 'bsnes-classic')
+provides=('bsnes-plus')
+
+pkgver() {
+ cd bsnes-plus
+ printf "0.73r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ export QT_SELECT=4
+
+ cd "${srcdir}"/bsnes-plus/bsnes
+
+ for p in {accuracy,compatibility}; do
+ make profile="$p"
+ mv out/bsnes{,-$p}
+ make clean
+ done
+
+ for l in {snesfilter,snesreader,supergameboy}; do
+ cd "${srcdir}"/bsnes-plus/"$l"
+ make
+ done
+}
+
+package() {
+ cd "${srcdir}"/bsnes-plus/
+ install -dm 755 "${pkgdir}"/usr/{bin,lib,share/{applications,pixmaps}}
+ install -m 755 ../bsnes "${pkgdir}"/usr/bin/
+ install -m 644 bsnes/data/bsnes.desktop "${pkgdir}"/usr/share/applications/
+ install -m 644 bsnes/data/bsnes.png "${pkgdir}"/usr/share/pixmaps/
+ install -m 644 snesfilter/libsnesfilter.so "${pkgdir}"/usr/lib/
+ install -m 644 snesreader/libsnesreader.so "${pkgdir}"/usr/lib/
+ install -m 644 supergameboy/libsupergameboy.so "${pkgdir}"/usr/lib/
+
+ for p in {accuracy,compatibility}; do
+ install -m 755 bsnes/out/bsnes-$p "${pkgdir}"/usr/bin/
+ done
+} \ No newline at end of file
diff --git a/bsnes b/bsnes
new file mode 100644
index 00000000000..226f9d04c5d
--- /dev/null
+++ b/bsnes
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Check for profiles and prompt user with a GUI
+[ -e /usr/bin/bsnes-accuracy ] && tag1=accuracy
+[ -e /usr/bin/bsnes-compatibility ] && tag2=compatibility
+profile="$(Xdialog --stdout --no-tags --title "bsnes-plus" --radiolist "Choose a profile" 0 0 "$tag1" "Accuracy" off "$tag2" "Compatibility" off)"
+
+# Launch selected profile
+exec bsnes-$profile "$@" \ No newline at end of file