summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoohbah2015-07-06 21:29:37 +0000
committerBoohbah2015-07-06 21:29:37 +0000
commita3bd15b749c9b64ba40877ee4668cda7e06ea302 (patch)
tree3a1e3c06d073f0179fa49f79b33916fe5beb8553
downloadaur-a3bd15b749c9b64ba40877ee4668cda7e06ea302.tar.gz
Initial import
-rw-r--r--.SRCINFO34
-rw-r--r--PKGBUILD36
-rw-r--r--snes9x-git.install12
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d37549aff7d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+pkgbase = snes9x-git
+ pkgdesc = A GTK+ port of the Snes9x emulator (git version)
+ pkgver = 1.53.r230.gdfc6227
+ pkgrel = 1
+ url = http://www.snes9x.com/
+ install = snes9x-git.install
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = intltool
+ makedepends = nasm
+ makedepends = mesa
+ makedepends = git
+ makedepends = autogen
+ depends = zlib
+ depends = libpng
+ depends = sdl
+ depends = alsa-lib
+ depends = libglade
+ depends = libxv
+ depends = gcc-libs
+ depends = libxext
+ depends = libsm
+ depends = libgl
+ depends = gtk3
+ provides = snes9x
+ provides = snes9x-gtk
+ conflicts = snes9x
+ conflicts = snes9x-gtk
+ source = snes9x-git::git://github.com/snes9xgit/snes9x.git
+ md5sums = SKIP
+
+pkgname = snes9x-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ec7c52ce3af
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Boohbah <boohbah at gmail.com>
+# Contributor: bzt <unmacaque at gmail.com>
+
+pkgname=snes9x-git
+_gitname=snes9x
+pkgver=1.53.r230.gdfc6227
+pkgrel=1
+pkgdesc="A GTK+ port of the Snes9x emulator (git version)"
+arch=('i686' 'x86_64')
+url="http://www.snes9x.com/"
+license=('LGPL')
+depends=('zlib' 'libpng' 'sdl' 'alsa-lib' 'libglade' 'libxv' 'gcc-libs'
+ 'libxext' 'libsm' 'libgl' 'gtk3')
+makedepends=('intltool' 'nasm' 'mesa' 'git' 'autogen')
+provides=('snes9x' 'snes9x-gtk')
+conflicts=('snes9x' 'snes9x-gtk')
+install=snes9x-git.install
+source=("$pkgname"::'git://github.com/snes9xgit/snes9x.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$pkgname/gtk"
+ ./autogen.sh
+ ./configure --prefix=/usr --with-netplay --with-gtk3
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname/gtk"
+ make DESTDIR="$pkgdir" install
+}
diff --git a/snes9x-git.install b/snes9x-git.install
new file mode 100644
index 00000000000..2c88492dd59
--- /dev/null
+++ b/snes9x-git.install
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove () {
+ post_install $1
+}