summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 22 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 10429397ebb..930a4726b6b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,33 @@
-# Maintainer: Thomas Schneider <maxmusterm@gmail.com>
+# Maintainer: Rafał Kozdrój <kozeid2@gmail.com>
+# Contributor: Thomas Schneider <maxmusterm@gmail.com>
# Contributor: prettyvanilla <prettyvanilla@posteo.at>
# Contributor: almostalive <almostalive2003 at gmail dot com>
-pkgname=libretro-nxengine-git
-pkgver=389.dc2545f
+_gitname=nxengine-libretro
+_libname=nxengine_libretro
+_pkgname=libretro-nxengine
+
+pkgname=${_pkgname}-git
+pkgver=r486.af3762e
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"
+arch=('i686' 'x86_64')
+url="https://github.com/libretro/${_gitname}"
license=('GPL3')
+groups=('libretro')
+depends=('gcc-libs' 'glibc')
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")
+provides=("${_pkgname}=${pkgver}")
+conflicts=("${_pkgname}")
+install=$pkgname.install
+source=("git+${url}.git"
+ "https://raw.githubusercontent.com/libretro/libretro-super/master/dist/info/${_libname}.info")
md5sums=('SKIP'
- 'SKIP'
- '5aad47f1cb72185d6e7f4c8c392f6b6e')
+ 'e3e19e32d2456b63e5d4b3a66166622f')
pkgver() {
cd "${_gitname}"
- echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
@@ -35,8 +37,8 @@ build() {
package() {
install -Dm644 "${_gitname}/${_libname}.so" "${pkgdir}/usr/lib/libretro/${_libname}.so"
- install -Dm644 "${_libname}.info" "${pkgdir}/usr/lib/libretro/${_libname}.info"
+ install -Dm644 "${_libname}.info" "${pkgdir}/usr/share/libretro/info/${_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/"
+ mkdir -p "${pkgdir}/usr/share/libretro/${_libname}"
+ cp -a "${_gitname}/datafiles" "${pkgdir}/usr/share/libretro/${_libname}"
}