summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Jaksch2015-09-11 08:16:52 +0200
committerOliver Jaksch2015-09-11 08:16:52 +0200
commit811215388708ebf7b50f93d01949ef540632ea9d (patch)
tree7365018f7d930e28d87273ac48abc96bf12f51fe
downloadaur-811215388708ebf7b50f93d01949ef540632ea9d.tar.gz
Initial Commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD33
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1052c417626
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = libretro-mame-git
+ pkgdesc = libretro implementation of MAME 2015. (Arcade)
+ pkgver = 38549.b4d3b39
+ pkgrel = 1
+ url = https://github.com/libretro/mame
+ arch = i686
+ arch = x86_64
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ license = custom:MAME License
+ makedepends = git
+ makedepends = python2
+ source = git+https://github.com/libretro/mame.git
+ source = https://raw.github.com/libretro/libretro-super/master/dist/info/mame_libretro.info
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = libretro-mame-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..75406c00cf5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Oliver Jaksch <arch-aur@com-in.de>
+
+pkgname=libretro-mame-git
+pkgver=38549.b4d3b39
+pkgrel=1
+arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
+pkgdesc="libretro implementation of MAME 2015. (Arcade)"
+url="https://github.com/libretro/mame"
+license=('custom:MAME License')
+makedepends=('git' 'python2')
+
+_libname=mame_libretro
+_gitname=mame
+source=("git+https://github.com/libretro/${_gitname}.git"
+ "https://raw.github.com/libretro/libretro-super/master/dist/info/${_libname}.info")
+md5sums=('SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd "${_gitname}"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "${_gitname}"
+ make -f Makefile.libretro
+}
+
+package() {
+ install -Dm644 "${_gitname}/${_libname}.so" "${pkgdir}/usr/lib/libretro/${_libname}.so"
+ install -Dm644 "${_libname}.info" "${pkgdir}/usr/lib/libretro/${_libname}.info"
+ install -Dm644 "${_gitname}/docs/mamelicense.txt" "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
+}