From 345b8c4070212e489cfc754155bc8dfea4db17b3 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Mon, 11 May 2015 21:35:08 -0300 Subject: mv aqsis,blender-addon-ogre,cambozola,cinepaint-lts,collada-dom,gimp-art,gimp-pcr,mednafen-server,mitsuba,nexuiz,nexuiz-data,noip,openssh-knock,python-pygame-hg,supermodel,systemd-knock,tupi,xcftools,yafaray,zoneminder to ssh://git@projects.parabola.nu/~git/pcr.git --- pcr/supermodel | 1 + pcr/supermodel/PKGBUILD | 38 -------------- pcr/supermodel/multiuser.patch | 107 -------------------------------------- pcr/supermodel/supermodel.install | 12 ----- pcr/supermodel/supermodel.sh | 12 ----- 5 files changed, 1 insertion(+), 169 deletions(-) create mode 100644 pcr/supermodel delete mode 100644 pcr/supermodel/PKGBUILD delete mode 100644 pcr/supermodel/multiuser.patch delete mode 100644 pcr/supermodel/supermodel.install delete mode 100644 pcr/supermodel/supermodel.sh (limited to 'pcr/supermodel') diff --git a/pcr/supermodel b/pcr/supermodel new file mode 100644 index 000000000..4eb47d013 --- /dev/null +++ b/pcr/supermodel @@ -0,0 +1 @@ +moved to [ssh://git@projects.parabola.nu/~git/pcr.git/pcr] git repo diff --git a/pcr/supermodel/PKGBUILD b/pcr/supermodel/PKGBUILD deleted file mode 100644 index 7621f5e90..000000000 --- a/pcr/supermodel/PKGBUILD +++ /dev/null @@ -1,38 +0,0 @@ -# Maintainer (Arch): Anton Shestakov - -pkgname=supermodel -pkgver=0.2a -pkgrel=1 -pkgdesc='A Sega Model 3 Arcade Emulator' -arch=('i686' 'x86_64' 'mips64el') -url='http://www.supermodel3.com/' -license=('GPL3') -depends=('mesa' 'glu' 'sdl' 'zlib') -install=supermodel.install -source=('multiuser.patch' 'supermodel.sh' - "http://www.supermodel3.com/Files/Supermodel_${pkgver}_Src.zip") -md5sums=('a7cf136e412a0d927b099c15793b658d' 'ea8274c2a37acddd026fce9c831530cc' - 'd22359fbe277fe8f6fe0a06524350fc1') - -MAKEFLAGS="-j1" - -build() { - cd "$srcdir/Supermodel_${pkgver}_Src" - sed -e "s/-Wall -O3/$CFLAGS/" -i 'Makefiles/Makefile.SDL.UNIX.GCC' - patch -p1 < ../multiuser.patch - make -f 'Makefiles/Makefile.SDL.UNIX.GCC' -} - -package() { - cd "$srcdir/Supermodel_${pkgver}_Src" - - install -Dm755 "$srcdir/supermodel.sh" "$pkgdir/usr/bin/supermodel" - - install -Dm755 "bin/Supermodel" "$pkgdir/usr/share/supermodel/Supermodel" - - install -Dm644 "Docs/LICENSE.txt" "$pkgdir/usr/share/licenses/supermodel/LICENSE" - install -Dm644 "Docs/README.txt" "$pkgdir/usr/share/doc/supermodel/README" - - install -d "$pkgdir/usr/share/supermodel/Config" - install -m644 Config/* "$pkgdir/usr/share/supermodel/Config/" -} diff --git a/pcr/supermodel/multiuser.patch b/pcr/supermodel/multiuser.patch deleted file mode 100644 index 9cb93e02c..000000000 --- a/pcr/supermodel/multiuser.patch +++ /dev/null @@ -1,107 +0,0 @@ -diff --git a/Src/OSD/SDL/Main.cpp b/Src/OSD/SDL/Main.cpp ---- a/Src/OSD/SDL/Main.cpp -+++ b/Src/OSD/SDL/Main.cpp -@@ -307,7 +307,6 @@ - Configuration file management and input settings. - ******************************************************************************/ - --#define CONFIG_FILE_PATH "Config/Supermodel.ini" - #define CONFIG_FILE_COMMENT ";\n" \ - "; Supermodel Configuration File\n" \ - ";\n" -@@ -315,9 +314,13 @@ - // Create and configure inputs - static bool ConfigureInputs(CInputs *Inputs, bool configure) - { -+ char configFilePath[512]; -+ -+ sprintf(configFilePath, "%s/.supermodel/supermodel.ini", getenv("HOME")); -+ - // Open and parse configuration file - CINIFile INI; -- INI.Open(CONFIG_FILE_PATH); // doesn't matter if it exists or not, will get overwritten -+ INI.Open(configFilePath); // doesn't matter if it exists or not, will get overwritten - INI.SetDefaultSectionName("Global"); - INI.Parse(); - -@@ -338,9 +341,9 @@ - Inputs->WriteToINIFile(&INI, "Global"); - - if (OKAY != INI.Write(CONFIG_FILE_COMMENT)) -- ErrorLog("Unable to save configuration to '%s'.", CONFIG_FILE_PATH); -+ ErrorLog("Unable to save configuration to '%s'.", configFilePath); - else -- printf("Configuration successfully saved to '%s'.\n", CONFIG_FILE_PATH); -+ printf("Configuration successfully saved to '%s'.\n", configFilePath); - } - else - puts("Configuration aborted..."); -@@ -412,9 +415,13 @@ - // Read settings (from a specific section) from the config file - static void ReadConfigFile(const char *section) - { -+ char configFilePath[512]; -+ -+ sprintf(configFilePath, "%s/.supermodel/supermodel.ini", getenv("HOME")); -+ - CINIFile INI; - -- INI.Open(CONFIG_FILE_PATH); -+ INI.Open(configFilePath); - INI.SetDefaultSectionName("Global"); // required to read settings not associated with a specific section - INI.Parse(); - ApplySettings(&INI, section); -@@ -498,10 +505,10 @@ - static void SaveState(CModel3 *Model3) - { - CBlockFile SaveState; -- char filePath[24]; -+ char filePath[512]; - int fileVersion = STATE_FILE_VERSION; - -- sprintf(filePath, "Saves/%s.st%d", Model3->GetGameInfo()->id, saveSlot); -+ sprintf(filePath, "%s/.supermodel/saves/%s.st%d", getenv("HOME"), Model3->GetGameInfo()->id, saveSlot); - if (OKAY != SaveState.Create(filePath, "Supermodel Save State", "Supermodel Version " SUPERMODEL_VERSION)) - { - ErrorLog("Unable to save state to '%s'.", filePath); -@@ -522,11 +529,11 @@ - static void LoadState(CModel3 *Model3) - { - CBlockFile SaveState; -- char filePath[24]; -+ char filePath[512]; - int fileVersion; - - // Generate file path -- sprintf(filePath, "Saves/%s.st%d", Model3->GetGameInfo()->id, saveSlot); -+ sprintf(filePath, "%s/.supermodel/saves/%s.st%d", getenv("HOME"), Model3->GetGameInfo()->id, saveSlot); - - // Open and check to make sure format is correct - if (OKAY != SaveState.Load(filePath)) -@@ -558,10 +565,10 @@ - static void SaveNVRAM(CModel3 *Model3) - { - CBlockFile NVRAM; -- char filePath[24]; -+ char filePath[512]; - int fileVersion = NVRAM_FILE_VERSION; - -- sprintf(filePath, "NVRAM/%s.nv", Model3->GetGameInfo()->id); -+ sprintf(filePath, "%s/.supermodel/NVRAM/%s.nv", getenv("HOME"), Model3->GetGameInfo()->id); - if (OKAY != NVRAM.Create(filePath, "Supermodel NVRAM State", "Supermodel Version " SUPERMODEL_VERSION)) - { - ErrorLog("Unable to save NVRAM to '%s'. Make sure directory exists!", filePath); -@@ -581,11 +588,11 @@ - static void LoadNVRAM(CModel3 *Model3) - { - CBlockFile NVRAM; -- char filePath[24]; -+ char filePath[512]; - int fileVersion; - - // Generate file path -- sprintf(filePath, "NVRAM/%s.nv", Model3->GetGameInfo()->id); -+ sprintf(filePath, "%s/.supermodel/NVRAM/%s.nv", getenv("HOME"), Model3->GetGameInfo()->id); - - // Open and check to make sure format is correct - if (OKAY != NVRAM.Load(filePath)) diff --git a/pcr/supermodel/supermodel.install b/pcr/supermodel/supermodel.install deleted file mode 100644 index 94ef82c48..000000000 --- a/pcr/supermodel/supermodel.install +++ /dev/null @@ -1,12 +0,0 @@ -# Message displayed for a fresh install. -post_install() { - echo "" - echo "***************************************************************" - echo " Supermodel has been installed in /usr/share/supermodel." - echo " However, Supermodel can be run by typing supermodel and it's options:" - echo " supermodel [options]" - echo "" - echo " Note: You need to provide the full path to the romset." - echo "***************************************************************" - echo "" -} diff --git a/pcr/supermodel/supermodel.sh b/pcr/supermodel/supermodel.sh deleted file mode 100644 index 992dd406d..000000000 --- a/pcr/supermodel/supermodel.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -mkdir -p ~/.supermodel/NVRAM -mkdir -p ~/.supermodel/saves - -cd /usr/share/supermodel - -if [[ ! -f ~/.supermodel/supermodel.ini ]]; then - cp ./Config/Supermodel.ini ~/.supermodel/supermodel.ini -fi - -./Supermodel "$@" -- cgit v1.2.3