summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schneider2015-08-14 19:15:14 +0200
committerThomas Schneider2015-08-14 19:15:14 +0200
commitb481367515f6609dad6ced6f46858ba6a03850ef (patch)
treedceb562a371b760ee571aab7df62289b0683a064
downloadaur-b481367515f6609dad6ced6f46858ba6a03850ef.tar.gz
initial import
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD42
-rw-r--r--libretro-nxengine.install13
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f9b34b18c99
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = libretro-nxengine-git
+ pkgdesc = libretro implementation of NXEngine. (Cave Story)
+ pkgver = 389.dc2545f
+ pkgrel = 1
+ url = https://github.com/libretro/nxengine-libretro
+ install = libretro-nxengine.install
+ arch = i686
+ arch = x86_64
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ license = GPL3
+ makedepends = git
+ source = git+https://github.com/libretro/nxengine-libretro.git
+ source = https://raw.github.com/libretro/libretro-super/master/dist/info/nxengine_libretro.info
+ source = http://www.cavestory.org/downloads/cavestoryen.zip
+ md5sums = SKIP
+ md5sums = SKIP
+ md5sums = 5aad47f1cb72185d6e7f4c8c392f6b6e
+
+pkgname = libretro-nxengine-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..10429397ebb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Thomas Schneider <maxmusterm@gmail.com>
+# Contributor: prettyvanilla <prettyvanilla@posteo.at>
+# Contributor: almostalive <almostalive2003 at gmail dot com>
+
+pkgname=libretro-nxengine-git
+pkgver=389.dc2545f
+pkgrel=1
+pkgdesc="libretro implementation of NXEngine. (Cave Story)"
+arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
+#maybe any will be good in the future
+url="https://github.com/libretro/nxengine-libretro"
+license=('GPL3')
+makedepends=('git')
+
+install=libretro-nxengine.install
+
+_libname=nxengine_libretro
+_gitname=nxengine-libretro
+source=("git+https://github.com/libretro/${_gitname}.git"
+ "https://raw.github.com/libretro/libretro-super/master/dist/info/${_libname}.info"
+ "http://www.cavestory.org/downloads/cavestoryen.zip")
+md5sums=('SKIP'
+ 'SKIP'
+ '5aad47f1cb72185d6e7f4c8c392f6b6e')
+
+pkgver() {
+ cd "${_gitname}"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "${_gitname}"
+ make
+}
+
+package() {
+ install -Dm644 "${_gitname}/${_libname}.so" "${pkgdir}/usr/lib/libretro/${_libname}.so"
+ install -Dm644 "${_libname}.info" "${pkgdir}/usr/lib/libretro/${_libname}.info"
+
+ install -Dm644 "CaveStory/Doukutsu.exe" "${pkgdir}/usr/share/libretro/${_libname}/datafiles/Doukutsu.exe"
+ cp -r "CaveStory/data/" "${pkgdir}/usr/share/libretro/${_libname}/datafiles/"
+}
diff --git a/libretro-nxengine.install b/libretro-nxengine.install
new file mode 100644
index 00000000000..151ca746945
--- /dev/null
+++ b/libretro-nxengine.install
@@ -0,0 +1,13 @@
+post_install() {
+cat << 'EOM'
+
+ Copy the datafiles folder from /usr/share/libretro/nxengine_libretro
+ to your home dir(or wherever you have read/write access)
+ run Doukutsu.exe from that folder as game
+
+EOM
+}
+
+post_upgrade() {
+ post_install
+}