[arch-commits] Commit in simutrans/repos (24 files)

Balló György bgyorgy at archlinux.org
Thu Mar 30 09:29:36 UTC 2017


    Date: Thursday, March 30, 2017 @ 09:29:35
  Author: bgyorgy
Revision: 220073

archrelease: copy trunk to community-i686, community-x86_64

Added:
  simutrans/repos/community-i686/PKGBUILD
    (from rev 220072, simutrans/trunk/PKGBUILD)
  simutrans/repos/community-i686/config.patch
    (from rev 220072, simutrans/trunk/config.patch)
  simutrans/repos/community-i686/no-optimise.patch
    (from rev 220072, simutrans/trunk/no-optimise.patch)
  simutrans/repos/community-i686/path-for-game-data.patch
    (from rev 220072, simutrans/trunk/path-for-game-data.patch)
  simutrans/repos/community-i686/settings-folder.patch
    (from rev 220072, simutrans/trunk/settings-folder.patch)
  simutrans/repos/community-i686/simutrans.desktop
    (from rev 220072, simutrans/trunk/simutrans.desktop)
  simutrans/repos/community-x86_64/PKGBUILD
    (from rev 220072, simutrans/trunk/PKGBUILD)
  simutrans/repos/community-x86_64/config.patch
    (from rev 220072, simutrans/trunk/config.patch)
  simutrans/repos/community-x86_64/no-optimise.patch
    (from rev 220072, simutrans/trunk/no-optimise.patch)
  simutrans/repos/community-x86_64/path-for-game-data.patch
    (from rev 220072, simutrans/trunk/path-for-game-data.patch)
  simutrans/repos/community-x86_64/settings-folder.patch
    (from rev 220072, simutrans/trunk/settings-folder.patch)
  simutrans/repos/community-x86_64/simutrans.desktop
    (from rev 220072, simutrans/trunk/simutrans.desktop)
Deleted:
  simutrans/repos/community-i686/PKGBUILD
  simutrans/repos/community-i686/config.patch
  simutrans/repos/community-i686/no-optimise.patch
  simutrans/repos/community-i686/path-for-game-data.patch
  simutrans/repos/community-i686/settings-folder.patch
  simutrans/repos/community-i686/simutrans.desktop
  simutrans/repos/community-x86_64/PKGBUILD
  simutrans/repos/community-x86_64/config.patch
  simutrans/repos/community-x86_64/no-optimise.patch
  simutrans/repos/community-x86_64/path-for-game-data.patch
  simutrans/repos/community-x86_64/settings-folder.patch
  simutrans/repos/community-x86_64/simutrans.desktop

-------------------------------------------+
 /PKGBUILD                                 |  148 ++++++++++++++++++++++++++++
 /config.patch                             |   66 ++++++++++++
 /no-optimise.patch                        |   84 +++++++++++++++
 /path-for-game-data.patch                 |   36 ++++++
 /settings-folder.patch                    |   24 ++++
 /simutrans.desktop                        |   18 +++
 community-i686/PKGBUILD                   |   75 --------------
 community-i686/config.patch               |   33 ------
 community-i686/no-optimise.patch          |   42 -------
 community-i686/path-for-game-data.patch   |   18 ---
 community-i686/settings-folder.patch      |   12 --
 community-i686/simutrans.desktop          |    9 -
 community-x86_64/PKGBUILD                 |   75 --------------
 community-x86_64/config.patch             |   33 ------
 community-x86_64/no-optimise.patch        |   42 -------
 community-x86_64/path-for-game-data.patch |   18 ---
 community-x86_64/settings-folder.patch    |   12 --
 community-x86_64/simutrans.desktop        |    9 -
 18 files changed, 376 insertions(+), 378 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-i686/PKGBUILD	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,75 +0,0 @@
-# $Id$
-# Maintainer: Balló György <ballogyor+arch at gmail dot com>
-# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
-# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
-# Contributor: Gilles Gagniard <gilles at gagniard.org>
-# Contributor: JD Steffen <jd at steffennet dot org>
-
-pkgname=simutrans
-pkgver=120.2
-_pkgver=120-2
-_pkgver2=120-2-r8077
-pkgrel=1
-pkgdesc="An open source transportation simulation game"
-arch=('i686' 'x86_64')
-url="http://simutrans.com/"
-license=('custom:Artistic')
-depends=('gcc-libs' 'zlib' 'sdl_mixer' 'bzip2' 'simutrans-pak64')
-makedepends=('imagemagick' 'dos2unix')
-optdepends=('timidity++: play MIDI music')
-source=(https://downloads.sourceforge.net/$pkgname/$pkgname-src-$_pkgver2.zip
-        https://downloads.sourceforge.net/$pkgname/simulinux-$_pkgver.zip
-        no-optimise.patch
-        settings-folder.patch
-        path-for-game-data.patch
-        config.patch
-        simutrans.desktop)
-md5sums=('ff437c0e6698f3719534d78d4d47f74b'
-         '4e1dbf836a4b4194a357978869134f0a'
-         '4ab1d787772fc279181c1bc89dd42bf9'
-         'c87d9a9910bc371df5d50f7f1ec298bb'
-         'e716340d372af264ca05510facfe5d2c'
-         '9b43ba428a9f6a41233dcc90c8a0a3a7'
-         'f41f7a08ad517ef2b60412859eb49963')
-
-prepare() {
-  cd "$srcdir"
-
-  # Some files are distributed in DOS format
-  find . -type f -exec dos2unix -q '{}' \;
-
-  # Don't overwrite default optimization flags
-  patch -Np1 -i no-optimise.patch
-
-  # Adjust paths
-  patch -Np0 -i settings-folder.patch
-  patch -Np1 -i path-for-game-data.patch
-
-  # Configure the build process
-  cp config.template config.default
-  patch -Np0 -i config.patch
-}
-
-build() {
-  cd "$srcdir"
-  convert simutrans.ico -alpha on simutrans.png
-  make
-}
-
-package() {
-  cd "$srcdir"
-
-  #binary
-  install -Dm755 build/default/sim "$pkgdir/usr/bin/simutrans"
-
-  #data
-  mkdir -p "$pkgdir/usr/share/games/$pkgname"
-  cp -r $pkgname/{config,font,music,text,themes} "$pkgdir/usr/share/games/$pkgname"
-
-  #desktop file and icon
-  install -Dm644 simutrans.png "$pkgdir/usr/share/pixmaps/simutrans.png"
-  install -Dm644 simutrans.desktop "$pkgdir/usr/share/applications/simutrans.desktop"
-
-  #license
-  install -Dm644 simutrans/license.txt "$pkgdir/usr/share/licenses/simutrans/license.txt"
-}

Copied: simutrans/repos/community-i686/PKGBUILD (from rev 220072, simutrans/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Gilles Gagniard <gilles at gagniard.org>
+# Contributor: JD Steffen <jd at steffennet dot org>
+
+pkgname=simutrans
+pkgver=120.2.1
+_pkgver=120-2-1
+pkgrel=1
+pkgdesc="An open source transportation simulation game"
+arch=('i686' 'x86_64')
+url="http://simutrans.com/"
+license=('custom:Artistic')
+depends=('gcc-libs' 'zlib' 'sdl_mixer' 'bzip2' 'simutrans-pak64')
+makedepends=('imagemagick' 'dos2unix')
+optdepends=('timidity++: play MIDI music')
+source=(https://downloads.sourceforge.net/$pkgname/$pkgname-src-$_pkgver.zip
+        https://downloads.sourceforge.net/$pkgname/simulinux-$_pkgver.zip
+        no-optimise.patch
+        settings-folder.patch
+        path-for-game-data.patch
+        config.patch
+        simutrans.desktop)
+sha256sums=('7dfbd1c44f47ddd8caedb3da77dac8262652f96e1c9ffd890b67757e08ddc942'
+            'c0f94631252916b50ef4d3668060bbae047423d40164cc9c8fad7d4d7ad3aace'
+            '2425da5c5b211a2688fa8809caf6362b731d897254d2c5ae2293d28276aa9c58'
+            'cbe5d7c7be96e6e7262c1e3b1c16155f5c179609f081e3ee050bbfc277845f71'
+            '59a606ecac52b338a3eea120ab8a04b95457fdd4ae6ea4e10087ef0da4724aa2'
+            '24bf2b611706c42fd52dc00d61fa2e28f54a614f17e43bc463817406e63eba3a'
+            '99545152f5e739b7eb028152383fa10d3e3d303c99167e1c6e5a6bd7dcd00fa3')
+
+prepare() {
+  cd "$srcdir"
+
+  # Some files are distributed in DOS format
+  find . -type f -exec dos2unix -q '{}' \;
+
+  # Don't overwrite default optimization flags
+  patch -Np1 -i no-optimise.patch
+
+  # Adjust paths
+  patch -Np0 -i settings-folder.patch
+  patch -Np1 -i path-for-game-data.patch
+
+  # Configure the build process
+  cp config.template config.default
+  patch -Np0 -i config.patch
+}
+
+build() {
+  cd "$srcdir"
+  convert simutrans.ico -alpha on simutrans.png
+  make
+}
+
+package() {
+  cd "$srcdir"
+
+  #binary
+  install -Dm755 build/default/sim "$pkgdir/usr/bin/simutrans"
+
+  #data
+  mkdir -p "$pkgdir/usr/share/games/$pkgname"
+  cp -r $pkgname/{config,font,music,text,themes} "$pkgdir/usr/share/games/$pkgname"
+
+  #desktop file and icon
+  install -Dm644 simutrans.png "$pkgdir/usr/share/pixmaps/simutrans.png"
+  install -Dm644 simutrans.desktop "$pkgdir/usr/share/applications/simutrans.desktop"
+
+  #license
+  install -Dm644 simutrans/license.txt "$pkgdir/usr/share/licenses/simutrans/license.txt"
+}

Deleted: community-i686/config.patch
===================================================================
--- community-i686/config.patch	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-i686/config.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,33 +0,0 @@
---- config.default.orig	2011-11-10 21:48:01.000000000 +0100
-+++ config.default	2011-11-10 21:51:58.383221979 +0100
-@@ -6,18 +6,18 @@
- #BACKEND = opengl
- #BACKEND = sdl
- #BACKEND = sdl2
--#BACKEND = mixer_sdl
-+BACKEND = mixer_sdl
- #BACKEND = posix
- 
- #COLOUR_DEPTH = 0
--#COLOUR_DEPTH = 16
-+COLOUR_DEPTH = 16
- 
- #OSTYPE = amiga
- #OSTYPE = beos
- #OSTYPE = cygwin
- #OSTYPE = freebsd
- #OSTYPE = haiku
--#OSTYPE = linux
-+OSTYPE = linux
- #OSTYPE = mingw64
- #OSTYPE = mac
- 
-@@ -37,6 +37,6 @@
- #SDL_CONFIG     = sdl-config
- #SDL2_CONFIG    = sdl2-config
- 
--#VERBOSE = 1
-+VERBOSE = 1
- 
- # The following useful conditional compilation flags exist
- #

Copied: simutrans/repos/community-i686/config.patch (from rev 220072, simutrans/trunk/config.patch)
===================================================================
--- community-i686/config.patch	                        (rev 0)
+++ community-i686/config.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,33 @@
+--- config.default.orig	2011-11-10 21:48:01.000000000 +0100
++++ config.default	2011-11-10 21:51:58.383221979 +0100
+@@ -6,18 +6,18 @@
+ #BACKEND = opengl
+ #BACKEND = sdl
+ #BACKEND = sdl2
+-#BACKEND = mixer_sdl
++BACKEND = mixer_sdl
+ #BACKEND = posix
+ 
+ #COLOUR_DEPTH = 0
+-#COLOUR_DEPTH = 16
++COLOUR_DEPTH = 16
+ 
+ #OSTYPE = amiga
+ #OSTYPE = beos
+ #OSTYPE = cygwin
+ #OSTYPE = freebsd
+ #OSTYPE = haiku
+-#OSTYPE = linux
++OSTYPE = linux
+ #OSTYPE = mingw
+ #OSTYPE = mac
+ 
+@@ -37,6 +37,6 @@
+ #SDL_CONFIG     = sdl-config
+ #SDL2_CONFIG    = sdl2-config
+ 
+-#VERBOSE = 1
++VERBOSE = 1
+ 
+ # The following useful conditional compilation flags exist
+ #

Deleted: community-i686/no-optimise.patch
===================================================================
--- community-i686/no-optimise.patch	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-i686/no-optimise.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,42 +0,0 @@
-diff -Naur simutrans.orig/Makefile simutrans/Makefile
---- simutrans.orig/Makefile	2014-11-20 17:50:34.948410000 +0100
-+++ simutrans/Makefile	2014-11-20 17:51:43.936577860 +0100
-@@ -76,17 +76,6 @@
- SDL_CONFIG     ?= sdl-config
- SDL2_CONFIG    ?= sdl2-config
- 
--ifneq ($(OPTIMISE),)
--  CFLAGS += -O3
--  ifeq ($(findstring $(OSTYPE), amiga),)
--	ifneq ($(findstring $(CXX), clang),)
--		CFLAGS += -minline-all-stringops
--	endif
--  endif
--else
--  CFLAGS += -O
--endif
--
- ifdef DEBUG
-   ifeq ($(shell expr $(DEBUG) \>= 1), 1)
-     CFLAGS += -g -DDEBUG
-diff -Naur simutrans.orig/makeobj/Makefile simutrans/makeobj/Makefile
---- simutrans.orig/makeobj/Makefile	2014-11-20 17:50:34.945077000 +0100
-+++ simutrans/makeobj/Makefile	2014-11-20 17:51:42.553214510 +0100
-@@ -42,17 +42,6 @@
-   CXXFLAGS   += -DUSE_HW -DUSE_C
- endif
- 
--ifneq ($(OPTIMISE),)
--  CFLAGS   += -O3 -fno-schedule-insns
--  CXXFLAGS += -O3 -fno-schedule-insns
--  ifneq ($(OSTYPE),mac)
--    CFLAGS  += -minline-all-stringops
--  endif
--else
--  CFLAGS   += -O
--  CXXFLAGS += -O
--endif
--
- ifdef DEBUG
-   ifeq ($(shell expr $(DEBUG) \>= 1), 1)
-     CFLAGS   += -g -DDEBUG

Copied: simutrans/repos/community-i686/no-optimise.patch (from rev 220072, simutrans/trunk/no-optimise.patch)
===================================================================
--- community-i686/no-optimise.patch	                        (rev 0)
+++ community-i686/no-optimise.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,42 @@
+diff -Naur simutrans.orig/Makefile simutrans/Makefile
+--- simutrans.orig/Makefile	2014-11-20 17:50:34.948410000 +0100
++++ simutrans/Makefile	2014-11-20 17:51:43.936577860 +0100
+@@ -76,17 +76,6 @@
+ SDL_CONFIG     ?= sdl-config
+ SDL2_CONFIG    ?= sdl2-config
+ 
+-ifneq ($(OPTIMISE),)
+-  CFLAGS += -O3
+-  ifeq ($(findstring $(OSTYPE), amiga),)
+-    ifneq ($(findstring $(CXX), clang),)
+-      CFLAGS += -minline-all-stringops
+-    endif
+-  endif
+-else
+-  CFLAGS += -O
+-endif
+-
+ ifdef DEBUG
+ 	ifndef MSG_LEVEL
+ 		MSG_LEVEL = 3
+diff -Naur simutrans.orig/makeobj/Makefile simutrans/makeobj/Makefile
+--- simutrans.orig/makeobj/Makefile	2014-11-20 17:50:34.945077000 +0100
++++ simutrans/makeobj/Makefile	2014-11-20 17:51:42.553214510 +0100
+@@ -42,17 +42,6 @@
+   CXXFLAGS   += -DUSE_HW -DUSE_C
+ endif
+ 
+-ifneq ($(OPTIMISE),)
+-  CFLAGS   += -O3 -fno-schedule-insns
+-  CXXFLAGS += -O3 -fno-schedule-insns
+-  ifneq ($(OSTYPE),mac)
+-    CFLAGS  += -minline-all-stringops
+-  endif
+-else
+-  CFLAGS   += -O
+-  CXXFLAGS += -O
+-endif
+-
+ ifdef DEBUG
+   ifeq ($(shell expr $(DEBUG) \>= 1), 1)
+     CFLAGS   += -g -DDEBUG

Deleted: community-i686/path-for-game-data.patch
===================================================================
--- community-i686/path-for-game-data.patch	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-i686/path-for-game-data.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,18 +0,0 @@
-look in /usr/share/games/simutrans for game data
-
- at DPATCH@
-
---- simutrans.orig/simmain.cc
-+++ simutrans/simmain.cc
-@@ -437,8 +437,9 @@
- 		strcat( env_t::program_dir, path_sep );
- 	}
- 	else {
--		strcpy( env_t::program_dir, argv[0] );
--		*(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
-+		// strcpy( env_t::program_dir, argv[0] );
-+		// *(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
-+		strcpy(env_t::program_dir, "/usr/share/games/simutrans/");
- 
- #ifdef __APPLE__
- 		// change working directory from binary dir to bundle dir

Copied: simutrans/repos/community-i686/path-for-game-data.patch (from rev 220072, simutrans/trunk/path-for-game-data.patch)
===================================================================
--- community-i686/path-for-game-data.patch	                        (rev 0)
+++ community-i686/path-for-game-data.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,18 @@
+look in /usr/share/games/simutrans for game data
+
+ at DPATCH@
+
+--- simutrans.orig/simmain.cc
++++ simutrans/simmain.cc
+@@ -437,8 +437,9 @@
+ 		strcat( env_t::program_dir, path_sep );
+ 	}
+ 	else {
+-		strcpy( env_t::program_dir, argv[0] );
+-		*(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
++		// strcpy( env_t::program_dir, argv[0] );
++		// *(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
++		strcpy(env_t::program_dir, "/usr/share/games/simutrans/");
+ 
+ #ifdef __APPLE__
+ 		// change working directory from binary dir to bundle dir

Deleted: community-i686/settings-folder.patch
===================================================================
--- community-i686/settings-folder.patch	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-i686/settings-folder.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,12 +0,0 @@
---- simsys.cc.orig	2011-10-28 20:32:25.000000000 +0200
-+++ simsys.cc	2011-11-10 23:09:10.380031846 +0100
-@@ -47,7 +47,7 @@
- #elif defined __APPLE__
- 	sprintf(buffer, "%s/Library/Simutrans", getenv("HOME"));
- #else
--	sprintf(buffer, "%s/simutrans", getenv("HOME"));
-+	sprintf(buffer, "%s/.simutrans", getenv("HOME"));
- #endif
- 
- 	dr_mkdir(buffer);
-

Copied: simutrans/repos/community-i686/settings-folder.patch (from rev 220072, simutrans/trunk/settings-folder.patch)
===================================================================
--- community-i686/settings-folder.patch	                        (rev 0)
+++ community-i686/settings-folder.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,12 @@
+--- simsys.cc.orig	2011-10-28 20:32:25.000000000 +0200
++++ simsys.cc	2011-11-10 23:09:10.380031846 +0100
+@@ -47,7 +47,7 @@
+ #elif defined __APPLE__
+ 	sprintf(buffer, "%s/Library/Simutrans", getenv("HOME"));
+ #else
+-	sprintf(buffer, "%s/simutrans", getenv("HOME"));
++	sprintf(buffer, "%s/.simutrans", getenv("HOME"));
+ #endif
+ 
+ 	dr_mkdir(buffer);
+

Deleted: community-i686/simutrans.desktop
===================================================================
--- community-i686/simutrans.desktop	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-i686/simutrans.desktop	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Name=Simutrans
-Comment=Transportation simulator
-Exec=simutrans
-Icon=simutrans
-Terminal=false
-Type=Application
-Categories=Game;Simulation;
-

Copied: simutrans/repos/community-i686/simutrans.desktop (from rev 220072, simutrans/trunk/simutrans.desktop)
===================================================================
--- community-i686/simutrans.desktop	                        (rev 0)
+++ community-i686/simutrans.desktop	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Simutrans
+Comment=Transportation simulator
+Exec=simutrans
+Icon=simutrans
+Terminal=false
+Type=Application
+Categories=Game;Simulation;
+

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-x86_64/PKGBUILD	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,75 +0,0 @@
-# $Id$
-# Maintainer: Balló György <ballogyor+arch at gmail dot com>
-# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
-# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
-# Contributor: Gilles Gagniard <gilles at gagniard.org>
-# Contributor: JD Steffen <jd at steffennet dot org>
-
-pkgname=simutrans
-pkgver=120.2
-_pkgver=120-2
-_pkgver2=120-2-r8077
-pkgrel=1
-pkgdesc="An open source transportation simulation game"
-arch=('i686' 'x86_64')
-url="http://simutrans.com/"
-license=('custom:Artistic')
-depends=('gcc-libs' 'zlib' 'sdl_mixer' 'bzip2' 'simutrans-pak64')
-makedepends=('imagemagick' 'dos2unix')
-optdepends=('timidity++: play MIDI music')
-source=(https://downloads.sourceforge.net/$pkgname/$pkgname-src-$_pkgver2.zip
-        https://downloads.sourceforge.net/$pkgname/simulinux-$_pkgver.zip
-        no-optimise.patch
-        settings-folder.patch
-        path-for-game-data.patch
-        config.patch
-        simutrans.desktop)
-md5sums=('ff437c0e6698f3719534d78d4d47f74b'
-         '4e1dbf836a4b4194a357978869134f0a'
-         '4ab1d787772fc279181c1bc89dd42bf9'
-         'c87d9a9910bc371df5d50f7f1ec298bb'
-         'e716340d372af264ca05510facfe5d2c'
-         '9b43ba428a9f6a41233dcc90c8a0a3a7'
-         'f41f7a08ad517ef2b60412859eb49963')
-
-prepare() {
-  cd "$srcdir"
-
-  # Some files are distributed in DOS format
-  find . -type f -exec dos2unix -q '{}' \;
-
-  # Don't overwrite default optimization flags
-  patch -Np1 -i no-optimise.patch
-
-  # Adjust paths
-  patch -Np0 -i settings-folder.patch
-  patch -Np1 -i path-for-game-data.patch
-
-  # Configure the build process
-  cp config.template config.default
-  patch -Np0 -i config.patch
-}
-
-build() {
-  cd "$srcdir"
-  convert simutrans.ico -alpha on simutrans.png
-  make
-}
-
-package() {
-  cd "$srcdir"
-
-  #binary
-  install -Dm755 build/default/sim "$pkgdir/usr/bin/simutrans"
-
-  #data
-  mkdir -p "$pkgdir/usr/share/games/$pkgname"
-  cp -r $pkgname/{config,font,music,text,themes} "$pkgdir/usr/share/games/$pkgname"
-
-  #desktop file and icon
-  install -Dm644 simutrans.png "$pkgdir/usr/share/pixmaps/simutrans.png"
-  install -Dm644 simutrans.desktop "$pkgdir/usr/share/applications/simutrans.desktop"
-
-  #license
-  install -Dm644 simutrans/license.txt "$pkgdir/usr/share/licenses/simutrans/license.txt"
-}

Copied: simutrans/repos/community-x86_64/PKGBUILD (from rev 220072, simutrans/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
+# Contributor: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Gilles Gagniard <gilles at gagniard.org>
+# Contributor: JD Steffen <jd at steffennet dot org>
+
+pkgname=simutrans
+pkgver=120.2.1
+_pkgver=120-2-1
+pkgrel=1
+pkgdesc="An open source transportation simulation game"
+arch=('i686' 'x86_64')
+url="http://simutrans.com/"
+license=('custom:Artistic')
+depends=('gcc-libs' 'zlib' 'sdl_mixer' 'bzip2' 'simutrans-pak64')
+makedepends=('imagemagick' 'dos2unix')
+optdepends=('timidity++: play MIDI music')
+source=(https://downloads.sourceforge.net/$pkgname/$pkgname-src-$_pkgver.zip
+        https://downloads.sourceforge.net/$pkgname/simulinux-$_pkgver.zip
+        no-optimise.patch
+        settings-folder.patch
+        path-for-game-data.patch
+        config.patch
+        simutrans.desktop)
+sha256sums=('7dfbd1c44f47ddd8caedb3da77dac8262652f96e1c9ffd890b67757e08ddc942'
+            'c0f94631252916b50ef4d3668060bbae047423d40164cc9c8fad7d4d7ad3aace'
+            '2425da5c5b211a2688fa8809caf6362b731d897254d2c5ae2293d28276aa9c58'
+            'cbe5d7c7be96e6e7262c1e3b1c16155f5c179609f081e3ee050bbfc277845f71'
+            '59a606ecac52b338a3eea120ab8a04b95457fdd4ae6ea4e10087ef0da4724aa2'
+            '24bf2b611706c42fd52dc00d61fa2e28f54a614f17e43bc463817406e63eba3a'
+            '99545152f5e739b7eb028152383fa10d3e3d303c99167e1c6e5a6bd7dcd00fa3')
+
+prepare() {
+  cd "$srcdir"
+
+  # Some files are distributed in DOS format
+  find . -type f -exec dos2unix -q '{}' \;
+
+  # Don't overwrite default optimization flags
+  patch -Np1 -i no-optimise.patch
+
+  # Adjust paths
+  patch -Np0 -i settings-folder.patch
+  patch -Np1 -i path-for-game-data.patch
+
+  # Configure the build process
+  cp config.template config.default
+  patch -Np0 -i config.patch
+}
+
+build() {
+  cd "$srcdir"
+  convert simutrans.ico -alpha on simutrans.png
+  make
+}
+
+package() {
+  cd "$srcdir"
+
+  #binary
+  install -Dm755 build/default/sim "$pkgdir/usr/bin/simutrans"
+
+  #data
+  mkdir -p "$pkgdir/usr/share/games/$pkgname"
+  cp -r $pkgname/{config,font,music,text,themes} "$pkgdir/usr/share/games/$pkgname"
+
+  #desktop file and icon
+  install -Dm644 simutrans.png "$pkgdir/usr/share/pixmaps/simutrans.png"
+  install -Dm644 simutrans.desktop "$pkgdir/usr/share/applications/simutrans.desktop"
+
+  #license
+  install -Dm644 simutrans/license.txt "$pkgdir/usr/share/licenses/simutrans/license.txt"
+}

Deleted: community-x86_64/config.patch
===================================================================
--- community-x86_64/config.patch	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-x86_64/config.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,33 +0,0 @@
---- config.default.orig	2011-11-10 21:48:01.000000000 +0100
-+++ config.default	2011-11-10 21:51:58.383221979 +0100
-@@ -6,18 +6,18 @@
- #BACKEND = opengl
- #BACKEND = sdl
- #BACKEND = sdl2
--#BACKEND = mixer_sdl
-+BACKEND = mixer_sdl
- #BACKEND = posix
- 
- #COLOUR_DEPTH = 0
--#COLOUR_DEPTH = 16
-+COLOUR_DEPTH = 16
- 
- #OSTYPE = amiga
- #OSTYPE = beos
- #OSTYPE = cygwin
- #OSTYPE = freebsd
- #OSTYPE = haiku
--#OSTYPE = linux
-+OSTYPE = linux
- #OSTYPE = mingw64
- #OSTYPE = mac
- 
-@@ -37,6 +37,6 @@
- #SDL_CONFIG     = sdl-config
- #SDL2_CONFIG    = sdl2-config
- 
--#VERBOSE = 1
-+VERBOSE = 1
- 
- # The following useful conditional compilation flags exist
- #

Copied: simutrans/repos/community-x86_64/config.patch (from rev 220072, simutrans/trunk/config.patch)
===================================================================
--- community-x86_64/config.patch	                        (rev 0)
+++ community-x86_64/config.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,33 @@
+--- config.default.orig	2011-11-10 21:48:01.000000000 +0100
++++ config.default	2011-11-10 21:51:58.383221979 +0100
+@@ -6,18 +6,18 @@
+ #BACKEND = opengl
+ #BACKEND = sdl
+ #BACKEND = sdl2
+-#BACKEND = mixer_sdl
++BACKEND = mixer_sdl
+ #BACKEND = posix
+ 
+ #COLOUR_DEPTH = 0
+-#COLOUR_DEPTH = 16
++COLOUR_DEPTH = 16
+ 
+ #OSTYPE = amiga
+ #OSTYPE = beos
+ #OSTYPE = cygwin
+ #OSTYPE = freebsd
+ #OSTYPE = haiku
+-#OSTYPE = linux
++OSTYPE = linux
+ #OSTYPE = mingw
+ #OSTYPE = mac
+ 
+@@ -37,6 +37,6 @@
+ #SDL_CONFIG     = sdl-config
+ #SDL2_CONFIG    = sdl2-config
+ 
+-#VERBOSE = 1
++VERBOSE = 1
+ 
+ # The following useful conditional compilation flags exist
+ #

Deleted: community-x86_64/no-optimise.patch
===================================================================
--- community-x86_64/no-optimise.patch	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-x86_64/no-optimise.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,42 +0,0 @@
-diff -Naur simutrans.orig/Makefile simutrans/Makefile
---- simutrans.orig/Makefile	2014-11-20 17:50:34.948410000 +0100
-+++ simutrans/Makefile	2014-11-20 17:51:43.936577860 +0100
-@@ -76,17 +76,6 @@
- SDL_CONFIG     ?= sdl-config
- SDL2_CONFIG    ?= sdl2-config
- 
--ifneq ($(OPTIMISE),)
--  CFLAGS += -O3
--  ifeq ($(findstring $(OSTYPE), amiga),)
--	ifneq ($(findstring $(CXX), clang),)
--		CFLAGS += -minline-all-stringops
--	endif
--  endif
--else
--  CFLAGS += -O
--endif
--
- ifdef DEBUG
-   ifeq ($(shell expr $(DEBUG) \>= 1), 1)
-     CFLAGS += -g -DDEBUG
-diff -Naur simutrans.orig/makeobj/Makefile simutrans/makeobj/Makefile
---- simutrans.orig/makeobj/Makefile	2014-11-20 17:50:34.945077000 +0100
-+++ simutrans/makeobj/Makefile	2014-11-20 17:51:42.553214510 +0100
-@@ -42,17 +42,6 @@
-   CXXFLAGS   += -DUSE_HW -DUSE_C
- endif
- 
--ifneq ($(OPTIMISE),)
--  CFLAGS   += -O3 -fno-schedule-insns
--  CXXFLAGS += -O3 -fno-schedule-insns
--  ifneq ($(OSTYPE),mac)
--    CFLAGS  += -minline-all-stringops
--  endif
--else
--  CFLAGS   += -O
--  CXXFLAGS += -O
--endif
--
- ifdef DEBUG
-   ifeq ($(shell expr $(DEBUG) \>= 1), 1)
-     CFLAGS   += -g -DDEBUG

Copied: simutrans/repos/community-x86_64/no-optimise.patch (from rev 220072, simutrans/trunk/no-optimise.patch)
===================================================================
--- community-x86_64/no-optimise.patch	                        (rev 0)
+++ community-x86_64/no-optimise.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,42 @@
+diff -Naur simutrans.orig/Makefile simutrans/Makefile
+--- simutrans.orig/Makefile	2014-11-20 17:50:34.948410000 +0100
++++ simutrans/Makefile	2014-11-20 17:51:43.936577860 +0100
+@@ -76,17 +76,6 @@
+ SDL_CONFIG     ?= sdl-config
+ SDL2_CONFIG    ?= sdl2-config
+ 
+-ifneq ($(OPTIMISE),)
+-  CFLAGS += -O3
+-  ifeq ($(findstring $(OSTYPE), amiga),)
+-    ifneq ($(findstring $(CXX), clang),)
+-      CFLAGS += -minline-all-stringops
+-    endif
+-  endif
+-else
+-  CFLAGS += -O
+-endif
+-
+ ifdef DEBUG
+ 	ifndef MSG_LEVEL
+ 		MSG_LEVEL = 3
+diff -Naur simutrans.orig/makeobj/Makefile simutrans/makeobj/Makefile
+--- simutrans.orig/makeobj/Makefile	2014-11-20 17:50:34.945077000 +0100
++++ simutrans/makeobj/Makefile	2014-11-20 17:51:42.553214510 +0100
+@@ -42,17 +42,6 @@
+   CXXFLAGS   += -DUSE_HW -DUSE_C
+ endif
+ 
+-ifneq ($(OPTIMISE),)
+-  CFLAGS   += -O3 -fno-schedule-insns
+-  CXXFLAGS += -O3 -fno-schedule-insns
+-  ifneq ($(OSTYPE),mac)
+-    CFLAGS  += -minline-all-stringops
+-  endif
+-else
+-  CFLAGS   += -O
+-  CXXFLAGS += -O
+-endif
+-
+ ifdef DEBUG
+   ifeq ($(shell expr $(DEBUG) \>= 1), 1)
+     CFLAGS   += -g -DDEBUG

Deleted: community-x86_64/path-for-game-data.patch
===================================================================
--- community-x86_64/path-for-game-data.patch	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-x86_64/path-for-game-data.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,18 +0,0 @@
-look in /usr/share/games/simutrans for game data
-
- at DPATCH@
-
---- simutrans.orig/simmain.cc
-+++ simutrans/simmain.cc
-@@ -437,8 +437,9 @@
- 		strcat( env_t::program_dir, path_sep );
- 	}
- 	else {
--		strcpy( env_t::program_dir, argv[0] );
--		*(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
-+		// strcpy( env_t::program_dir, argv[0] );
-+		// *(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
-+		strcpy(env_t::program_dir, "/usr/share/games/simutrans/");
- 
- #ifdef __APPLE__
- 		// change working directory from binary dir to bundle dir

Copied: simutrans/repos/community-x86_64/path-for-game-data.patch (from rev 220072, simutrans/trunk/path-for-game-data.patch)
===================================================================
--- community-x86_64/path-for-game-data.patch	                        (rev 0)
+++ community-x86_64/path-for-game-data.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,18 @@
+look in /usr/share/games/simutrans for game data
+
+ at DPATCH@
+
+--- simutrans.orig/simmain.cc
++++ simutrans/simmain.cc
+@@ -437,8 +437,9 @@
+ 		strcat( env_t::program_dir, path_sep );
+ 	}
+ 	else {
+-		strcpy( env_t::program_dir, argv[0] );
+-		*(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
++		// strcpy( env_t::program_dir, argv[0] );
++		// *(strrchr( env_t::program_dir, path_sep[0] )+1) = 0;
++		strcpy(env_t::program_dir, "/usr/share/games/simutrans/");
+ 
+ #ifdef __APPLE__
+ 		// change working directory from binary dir to bundle dir

Deleted: community-x86_64/settings-folder.patch
===================================================================
--- community-x86_64/settings-folder.patch	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-x86_64/settings-folder.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,12 +0,0 @@
---- simsys.cc.orig	2011-10-28 20:32:25.000000000 +0200
-+++ simsys.cc	2011-11-10 23:09:10.380031846 +0100
-@@ -47,7 +47,7 @@
- #elif defined __APPLE__
- 	sprintf(buffer, "%s/Library/Simutrans", getenv("HOME"));
- #else
--	sprintf(buffer, "%s/simutrans", getenv("HOME"));
-+	sprintf(buffer, "%s/.simutrans", getenv("HOME"));
- #endif
- 
- 	dr_mkdir(buffer);
-

Copied: simutrans/repos/community-x86_64/settings-folder.patch (from rev 220072, simutrans/trunk/settings-folder.patch)
===================================================================
--- community-x86_64/settings-folder.patch	                        (rev 0)
+++ community-x86_64/settings-folder.patch	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,12 @@
+--- simsys.cc.orig	2011-10-28 20:32:25.000000000 +0200
++++ simsys.cc	2011-11-10 23:09:10.380031846 +0100
+@@ -47,7 +47,7 @@
+ #elif defined __APPLE__
+ 	sprintf(buffer, "%s/Library/Simutrans", getenv("HOME"));
+ #else
+-	sprintf(buffer, "%s/simutrans", getenv("HOME"));
++	sprintf(buffer, "%s/.simutrans", getenv("HOME"));
+ #endif
+ 
+ 	dr_mkdir(buffer);
+

Deleted: community-x86_64/simutrans.desktop
===================================================================
--- community-x86_64/simutrans.desktop	2017-03-30 09:29:23 UTC (rev 220072)
+++ community-x86_64/simutrans.desktop	2017-03-30 09:29:35 UTC (rev 220073)
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Name=Simutrans
-Comment=Transportation simulator
-Exec=simutrans
-Icon=simutrans
-Terminal=false
-Type=Application
-Categories=Game;Simulation;
-

Copied: simutrans/repos/community-x86_64/simutrans.desktop (from rev 220072, simutrans/trunk/simutrans.desktop)
===================================================================
--- community-x86_64/simutrans.desktop	                        (rev 0)
+++ community-x86_64/simutrans.desktop	2017-03-30 09:29:35 UTC (rev 220073)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Simutrans
+Comment=Transportation simulator
+Exec=simutrans
+Icon=simutrans
+Terminal=false
+Type=Application
+Categories=Game;Simulation;
+


More information about the arch-commits mailing list