Add xboxdrv and various libretro cores
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Fri Sep 16 02:29:05 UTC 2016
|
||||
pkgbase = libretro-atari800-git
|
||||
pkgdesc = libretro implementation of Atari800 v3.1.0 (Atari 5200/400/800/XL/XE) (WIP)
|
||||
pkgver = 15.6e1883b
|
||||
pkgrel = 2
|
||||
url = https://github.com/r-type/libretro-atari800.git
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
arch = arm
|
||||
arch = armv6h
|
||||
arch = armv7h
|
||||
groups = libretro
|
||||
license = GPL2
|
||||
makedepends = git
|
||||
depends = zlib
|
||||
source = git+https://github.com/r-type/libretro-atari800.git
|
||||
source = atari800_libretro.info
|
||||
source = cfg.patch
|
||||
source = joycfg.patch
|
||||
sha256sums = SKIP
|
||||
sha256sums = f482663fa58468d889e615909ba9e09d2e616300a9575338b86ce1b93d751bdb
|
||||
sha256sums = 41e0c608d07cdc3228d37a7a29fd40b6629e964c13d14ba413fa84e956ef3777
|
||||
sha256sums = d30794556b622c757dbafb5ce988547967004bd2d779c74e28802f9dd78a167f
|
||||
|
||||
pkgname = libretro-atari800-git
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
# Maintainer: Oliver Jaksch <arch-aur@com-in.de>
|
||||
|
||||
pkgname=libretro-atari800-git
|
||||
pkgver=15.6e1883b
|
||||
pkgrel=2
|
||||
pkgdesc="libretro implementation of Atari800 v3.1.0 (Atari 5200/400/800/XL/XE) (WIP)"
|
||||
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
|
||||
url="https://github.com/r-type/libretro-atari800.git"
|
||||
license=('GPL2')
|
||||
groups=('libretro')
|
||||
depends=('zlib')
|
||||
makedepends=('git')
|
||||
|
||||
_libname=atari800_libretro
|
||||
_gitname=libretro-atari800
|
||||
source=("git+https://github.com/r-type/${_gitname}.git"
|
||||
"${_libname}.info"
|
||||
"cfg.patch"
|
||||
"joycfg.patch")
|
||||
sha256sums=('SKIP'
|
||||
'f482663fa58468d889e615909ba9e09d2e616300a9575338b86ce1b93d751bdb'
|
||||
'41e0c608d07cdc3228d37a7a29fd40b6629e964c13d14ba413fa84e956ef3777'
|
||||
'd30794556b622c757dbafb5ce988547967004bd2d779c74e28802f9dd78a167f')
|
||||
|
||||
pkgver() {
|
||||
cd "${_gitname}"
|
||||
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${_gitname}
|
||||
# rename config file to not interfere with original atari800
|
||||
patch -p0 < "../cfg.patch"
|
||||
patch -p0 < "../joycfg.patch"
|
||||
make -f Makefile
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm644 "${_gitname}/${_libname}.so" "${pkgdir}/usr/lib/libretro/${_libname}.so"
|
||||
install -Dm644 "${_libname}.info" "${pkgdir}/usr/lib/libretro/${_libname}.info"
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
display_name = "Atari 5200/400/800/XL/XE (Atari800)"
|
||||
authors = "Petr Stehlik"
|
||||
supported_extensions = "xfd|atr|cdm|cas|bin|a52|zip"
|
||||
corename = "Atari800"
|
||||
manufacturer = "Atari"
|
||||
categories = "Emulator"
|
||||
systemname = "Atari 5200/400/800/XL/XE"
|
||||
license = "GPLv2"
|
||||
permissions = ""
|
||||
display_version = "3.1.0"
|
||||
supports_no_game = "false"
|
||||
firmware_count = 2
|
||||
firmware0_desc = "ATARIOSB.ROM (Atari OS-B image file)"
|
||||
firmware0_path = "ATARIOSB.ROM"
|
||||
firmware0_opt = "false"
|
||||
firmware1_desc = "ATARIXL.ROM (Atari-XL image file)"
|
||||
firmware1_path = "ATARIXL.ROM"
|
||||
firmware1_opt = "false"
|
||||
@@ -0,0 +1,17 @@
|
||||
diff -uNr atari800.orig/src/cfg.c atari800/src/cfg.c
|
||||
--- atari800.orig/src/cfg.c 2016-02-23 14:28:55.247008447 +0100
|
||||
+++ atari800/src/cfg.c 2016-02-23 14:29:07.360269454 +0100
|
||||
@@ -68,11 +68,11 @@
|
||||
/* If another default path config path is defined use it
|
||||
otherwise use the default one */
|
||||
#ifndef DEFAULT_CFG_NAME
|
||||
-#define DEFAULT_CFG_NAME ".atari800.cfg"
|
||||
+#define DEFAULT_CFG_NAME ".atari800.cfg.libretro"
|
||||
#endif
|
||||
|
||||
#ifndef SYSTEM_WIDE_CFG_FILE
|
||||
-#define SYSTEM_WIDE_CFG_FILE "/etc/atari800.cfg"
|
||||
+#define SYSTEM_WIDE_CFG_FILE "/etc/atari800.cfg.libretro"
|
||||
#endif
|
||||
|
||||
static char rtconfig_filename[FILENAME_MAX];
|
||||
@@ -0,0 +1,37 @@
|
||||
diff -uNr atari800.orig/src/joycfg.c atari800/src/joycfg.c
|
||||
--- atari800.orig/src/joycfg.c 2016-02-23 14:17:28.000000000 +0100
|
||||
+++ atari800/src/joycfg.c 2016-02-23 14:24:09.282074155 +0100
|
||||
@@ -434,7 +434,7 @@
|
||||
int i,no;
|
||||
int bad=0;
|
||||
|
||||
- if ((fr=fopen("atari800.cfg","r"))==NULL)
|
||||
+ if ((fr=fopen("atari800.cfg.libretro","r"))==NULL)
|
||||
{
|
||||
printf("Error opening configuration file.\n"
|
||||
"Execute this utility from atari800 dir after configuring it!\n");
|
||||
@@ -494,9 +494,9 @@
|
||||
char string[256];
|
||||
int i;
|
||||
|
||||
- if ((fr=fopen("atari800.cfg","r"))==NULL)
|
||||
+ if ((fr=fopen("atari800.cfg.libretro","r"))==NULL)
|
||||
{
|
||||
- printf("Error opening atari800.cfg!\n");
|
||||
+ printf("Error opening atari800.cfg.libretro!\n");
|
||||
return;
|
||||
}
|
||||
if ((fw=fopen("atari800.tmp","w"))==NULL)
|
||||
@@ -521,10 +521,10 @@
|
||||
for (i=0;i<4;i++)
|
||||
fprintf(fw,"JOYSTICK_%i=%s\n",i,joyparams[joytypes[i]]);
|
||||
fclose(fw);
|
||||
- if (rename("atari800.tmp","atari800.cfg")==0)
|
||||
+ if (rename("atari800.tmp","atari800.cfg.libretro")==0)
|
||||
printf("Configuration successfully saved.\n");
|
||||
else
|
||||
- printf("Error when renaming atari800.tmp to atari800.cfg!\n");
|
||||
+ printf("Error when renaming atari800.tmp to atari800.cfg.libretro!\n");
|
||||
}
|
||||
/*------------------------------------------------------------------------*/
|
||||
int main()
|
||||
Reference in New Issue
Block a user