[arch-commits] Commit in ltris/repos/community-x86_64 (7 files)

Antonio Rojas arojas at archlinux.org
Sat Jun 9 07:50:38 UTC 2018


    Date: Saturday, June 9, 2018 @ 07:50:37
  Author: arojas
Revision: 342133

archrelease: copy trunk to community-x86_64

Added:
  ltris/repos/community-x86_64/PKGBUILD
    (from rev 342132, ltris/trunk/PKGBUILD)
  ltris/repos/community-x86_64/ltris-gcc5.patch
    (from rev 342132, ltris/trunk/ltris-gcc5.patch)
  ltris/repos/community-x86_64/ltris.changelog
    (from rev 342132, ltris/trunk/ltris.changelog)
  ltris/repos/community-x86_64/ltris.install
    (from rev 342132, ltris/trunk/ltris.install)
Deleted:
  ltris/repos/community-x86_64/PKGBUILD
  ltris/repos/community-x86_64/ltris.changelog
  ltris/repos/community-x86_64/ltris.install

------------------+
 PKGBUILD         |   78 +++++++-------
 ltris-gcc5.patch |  282 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 ltris.changelog  |   80 +++++++--------
 ltris.install    |    8 -
 4 files changed, 368 insertions(+), 80 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-09 07:50:16 UTC (rev 342132)
+++ PKGBUILD	2018-06-09 07:50:37 UTC (rev 342133)
@@ -1,36 +0,0 @@
-# $Id$
-# Maintainer: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
-# Contributor: Eric Belanger <eric at archlinux.org>
-# Contributor: SmackleFunky <smacklefunky at optusnet.com.au>
-
-pkgname=ltris
-pkgver=1.0.19
-pkgrel=2
-pkgdesc="A tetris clone where you have a bowl with blocks falling down"
-arch=('i686' 'x86_64')
-url="http://lgames.sourceforge.net/index.php?project=LTris"
-license=('GPL')
-depends=('sdl_mixer')
-backup=('var/games/ltris.hscr')
-install=$pkgname.install
-changelog=$pkgname.changelog
-source=(http://downloads.sourceforge.net/lgames/$pkgname-$pkgver.tar.gz)
-sha256sums=('8f6a9e7719d22004aee153db29ffd9ca41c7a6cd87fc791591994eecc2e625a1')
-
-build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-
-  ./configure --prefix=/usr --localstatedir=/var/games
-  make
-}
-
-package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-
-  make DESTDIR=${pkgdir} install
-
-  install -d ${pkgdir}/usr/share/pixmaps
-  install -m644 icons/ltris{16,32,48}.xpm ${pkgdir}/usr/share/pixmaps
-#FS#37951 fix  
-  chmod 775 ${pkgdir}/var/games  
-}

Copied: ltris/repos/community-x86_64/PKGBUILD (from rev 342132, ltris/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-06-09 07:50:37 UTC (rev 342133)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <dragonlord at aur.archlinux.org>
+# Contributor: Eric Belanger <eric at archlinux.org>
+# Contributor: SmackleFunky <smacklefunky at optusnet.com.au>
+
+pkgname=ltris
+pkgver=1.0.19
+pkgrel=3
+pkgdesc="A tetris clone where you have a bowl with blocks falling down"
+arch=('x86_64')
+url="http://lgames.sourceforge.net/index.php?project=LTris"
+license=('GPL')
+depends=('sdl_mixer')
+backup=('var/games/ltris.hscr')
+install=$pkgname.install
+changelog=$pkgname.changelog
+source=(http://downloads.sourceforge.net/lgames/$pkgname-$pkgver.tar.gz ltris-gcc5.patch)
+sha256sums=('8f6a9e7719d22004aee153db29ffd9ca41c7a6cd87fc791591994eecc2e625a1'
+            '8cc58ced347f843ea2c64e9cabd161d4da24393a09c661b77008152d4db974cb')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../ltris-gcc5.patch # Fix build with GCC 5 (Debian)
+}
+
+build() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+
+  ./configure --prefix=/usr --localstatedir=/var/games
+  make
+}
+
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+
+  make DESTDIR=${pkgdir} install
+
+  install -d ${pkgdir}/usr/share/pixmaps
+  install -m644 icons/ltris{16,32,48}.xpm ${pkgdir}/usr/share/pixmaps
+#FS#37951 fix  
+  chmod 775 ${pkgdir}/var/games  
+}

Copied: ltris/repos/community-x86_64/ltris-gcc5.patch (from rev 342132, ltris/trunk/ltris-gcc5.patch)
===================================================================
--- ltris-gcc5.patch	                        (rev 0)
+++ ltris-gcc5.patch	2018-06-09 07:50:37 UTC (rev 342133)
@@ -0,0 +1,282 @@
+Remove all inline descriptors from functions
+to prevent problems when building with GCC-5
+Patch extracted from upstream SVN
+Author: Colin Tuckley <colint at debian.org>
+--- a/src/tools.h
++++ b/src/tools.h
+@@ -33,7 +33,7 @@
+ #define VEC_DIST( vec1, vec2 ) ( sqrt( ( vec1.x - vec2.x ) * ( vec1.x - vec2.x ) + ( vec1.y - vec2.y ) * ( vec1.y - vec2.y ) ) )
+ 
+ /* compares to strings and returns true if their first strlen(str1) chars are equal */
+-inline int strequal( char *str1, char *str2 );
++int strequal( char *str1, char *str2 );
+ 
+ /* delete lines */
+ void delete_lines( char **lines, int line_number );
+@@ -45,16 +45,16 @@
+ } Delay;
+ 
+ /* set delay to ms milliseconds */
+-inline void delay_set( Delay *delay, int ms );
++void delay_set( Delay *delay, int ms );
+ 
+ /* reset delay ( cur = 0 )*/
+-inline void delay_reset( Delay *delay );
++void delay_reset( Delay *delay );
+ 
+ /* check if time's out ( add ms milliseconds )and reset */
+-inline int delay_timed_out( Delay *delay, int ms );
++int delay_timed_out( Delay *delay, int ms );
+ 
+ /* set timer so that we have a time out next call of delay_timed_out() */
+-inline void delay_force_time_out( Delay *delay );
++void delay_force_time_out( Delay *delay );
+ 
+ /* return distance betwteen to map positions */
+ int get_dist( int x1, int y1, int x2, int y2 );
+--- a/src/tools.c
++++ b/src/tools.c
+@@ -23,27 +23,27 @@
+ #include "ltris.h"
+ 
+ /* compares to strings and returns true if their first strlen(str1) chars are equal */
+-inline int strequal( char *str1, char *str2 )
++int strequal( char *str1, char *str2 )
+ {
+     if ( strlen( str1 ) != strlen( str2 ) ) return 0;
+     return ( !strncmp( str1, str2, strlen( str1 ) ) );
+ }
+ 
+ /* set delay to ms milliseconds */
+-inline void delay_set( Delay *delay, int ms )
++void delay_set( Delay *delay, int ms )
+ {
+     delay->limit = ms;
+     delay->cur = 0;
+ }
+ 
+ /* reset delay ( cur = 0 )*/
+-inline void delay_reset( Delay *delay )
++void delay_reset( Delay *delay )
+ {
+     delay->cur = 0;
+ }
+ 
+ /* check if times out and reset */
+-inline int delay_timed_out( Delay *delay, int ms )
++int delay_timed_out( Delay *delay, int ms )
+ {
+     delay->cur += ms;
+     if ( delay->cur >= delay->limit ) {
+@@ -56,12 +56,12 @@
+ }
+ 
+ /* set timer so that we have a time out next call of delay_timed_out() */
+-inline void delay_force_time_out( Delay *delay )
++void delay_force_time_out( Delay *delay )
+ {
+     delay->cur = delay->limit;
+ }
+ 
+-inline void goto_tile( int *x, int *y, int d )
++void goto_tile( int *x, int *y, int d )
+ {
+     /*  0 -up, clockwise, 5 - left up */
+     switch ( d ) {
+@@ -326,24 +326,24 @@
+ the target value until reached when counter_update() is called.
+ ====================================================================
+ */
+-inline void counter_set( Counter *counter, double value )
++void counter_set( Counter *counter, double value )
+ {
+     counter->value = value;
+     counter->approach = value;
+ }
+-inline void counter_add( Counter *counter, double add )
++void counter_add( Counter *counter, double add )
+ {
+     counter->value += add;
+ }
+-inline double counter_get_approach( Counter counter )
++double counter_get_approach( Counter counter )
+ {
+     return counter.approach;
+ }
+-inline double counter_get( Counter counter )
++double counter_get( Counter counter )
+ {
+     return counter.value;
+ }
+-inline void counter_update( Counter *counter, int ms )
++void counter_update( Counter *counter, int ms )
+ {
+     double change;
+     if ( counter->approach == counter->value ) return;
+--- a/src/sdl.h
++++ b/src/sdl.h
+@@ -41,8 +41,8 @@
+ SDL_Surface* load_surf(char *fname, int f);
+ SDL_Surface* create_surf(int w, int h, int f);
+ void free_surf( SDL_Surface **surf );
+-inline void lock_surf(SDL_Surface *sur);
+-inline void unlock_surf(SDL_Surface *sur);
++void lock_surf(SDL_Surface *sur);
++void unlock_surf(SDL_Surface *sur);
+ void blit_surf(void);
+ void alpha_blit_surf(int alpha);
+ void fill_surf(int c);
+@@ -86,8 +86,8 @@
+ Font* load_fixed_font(char *fname, int off, int len, int w);
+ void free_font(Font **sfnt);
+ int  write_text(Font *sfnt, SDL_Surface *dest, int x, int y, char *str, int alpha);
+-inline void lock_font(Font *sfnt);
+-inline void unlock_font(Font *sfnt);
++void lock_font(Font *sfnt);
++void unlock_font(Font *sfnt);
+ SDL_Rect last_write_rect(Font *fnt);
+ int  text_width(Font *fnt, char *str);
+ 
+@@ -132,14 +132,14 @@
+ char** get_mode_names( int *count );
+ int  set_video_mode( Video_Mode mode );
+ void hardware_cap();
+-inline void refresh_screen( int x, int y, int w, int h );
++void refresh_screen( int x, int y, int w, int h );
+ void refresh_rects();
+ void add_refresh_rect(int x, int y, int w, int h);
+ int  wait_for_key();
+ void wait_for_click();
+-inline void lock_screen();
+-inline void unlock_screen();
+-inline void flip_screen();
++void lock_screen();
++void unlock_screen();
++void flip_screen();
+ void fade_screen( int type, int ms );
+ void take_screenshot( int i );
+ 
+@@ -148,8 +148,8 @@
+ SDL_Cursor* create_cursor( int width, int height, int hot_x, int hot_y, char *source );
+ 
+ /* timer */
+-inline int get_time();
+-inline void reset_timer();
++int get_time();
++void reset_timer();
+ 
+ #ifdef __cplusplus
+ };
+--- a/src/sdl.c
++++ b/src/sdl.c
+@@ -244,7 +244,7 @@
+ #endif
+ 
+ /* return full path of bitmap */
+-inline void get_full_bmp_path( char *full_path, char *file_name )
++void get_full_bmp_path( char *full_path, char *file_name )
+ {
+     sprintf(full_path,  "%s/gfx/%s", SRC_DIR, file_name );
+ }
+@@ -330,7 +330,7 @@
+ /*
+     lock surface
+ */
+-inline void lock_surf(SDL_Surface *sur)
++void lock_surf(SDL_Surface *sur)
+ {
+     if (SDL_MUSTLOCK(sur))
+         SDL_LockSurface(sur);
+@@ -339,7 +339,7 @@
+ /*
+     unlock surface
+ */
+-inline void unlock_surf(SDL_Surface *sur)
++void unlock_surf(SDL_Surface *sur)
+ {
+     if (SDL_MUSTLOCK(sur))
+         SDL_UnlockSurface(sur);
+@@ -666,7 +666,7 @@
+ /*
+     lock font surface
+ */
+-inline void lock_font(Font *fnt)
++void lock_font(Font *fnt)
+ {
+     if (SDL_MUSTLOCK(fnt->pic))
+         SDL_LockSurface(fnt->pic);
+@@ -675,7 +675,7 @@
+ /*
+     unlock font surface
+ */
+-inline void unlock_font(Font *fnt)
++void unlock_font(Font *fnt)
+ {
+     if (SDL_MUSTLOCK(fnt->pic))
+         SDL_UnlockSurface(fnt->pic);
+@@ -905,7 +905,7 @@
+ /*
+     update rectangle (0,0,0,0)->fullscreen
+ */
+-inline void refresh_screen(int x, int y, int w, int h)
++void refresh_screen(int x, int y, int w, int h)
+ {
+     SDL_UpdateRect(sdl.screen, x, y, w, h);
+ }
+@@ -1055,7 +1055,7 @@
+ /*
+     lock surface
+ */
+-inline void lock_screen()
++void lock_screen()
+ {
+     if (SDL_MUSTLOCK(sdl.screen))
+         SDL_LockSurface(sdl.screen);
+@@ -1064,7 +1064,7 @@
+ /*
+     unlock surface
+ */
+-inline void unlock_screen()
++void unlock_screen()
+ {
+     if (SDL_MUSTLOCK(sdl.screen))
+         SDL_UnlockSurface(sdl.screen);
+@@ -1073,7 +1073,7 @@
+ /*
+     flip hardware screens (double buffer)
+ */
+-inline void flip_screen()
++void flip_screen()
+ {
+     SDL_Flip(sdl.screen);
+ }
+@@ -1132,7 +1132,7 @@
+ /*
+     get milliseconds since last call
+ */
+-inline int get_time()
++int get_time()
+ {
+     int ms;
+     cur_time = SDL_GetTicks();
+@@ -1148,7 +1148,7 @@
+ /*
+     reset timer
+ */
+-inline void reset_timer()
++void reset_timer()
+ {
+     last_time = SDL_GetTicks();
+ }
+--- a/src/bowl.c
++++ b/src/bowl.c
+@@ -333,7 +333,7 @@
+ Set a tile contents and pixel contents.
+ ====================================================================
+ */
+-inline void bowl_set_tile( Bowl *bowl, int x, int y, int tile_id )
++void bowl_set_tile( Bowl *bowl, int x, int y, int tile_id )
+ {
+     int i, j = y * bowl->block_size;
+     bowl->contents[x][y] = tile_id;
+

Deleted: ltris.changelog
===================================================================
--- ltris.changelog	2018-06-09 07:50:16 UTC (rev 342132)
+++ ltris.changelog	2018-06-09 07:50:37 UTC (rev 342133)
@@ -1,40 +0,0 @@
-2013-12-23  Jaroslav Lichtblau  <dragonlord at aur.archlinux.org>
-
-	* ltris 1.0.19-2
-	* FS#37951 fix
-
-2013-11-02  Jaroslav Lichtblau  <dragonlord at aur.archlinux.org>
-
-	* ltris 1.0.19-1
-	* Upstream update
-
-2011-12-18  Jaroslav Lichtblau  <dragonlord at aur.archlinux.org>
-
-	* ltris 1.0.18-1
-	* Upstream update
-
-2011-08-28  Jaroslav Lichtblau  <dragonlord at aur.archlinux.org>
-
-	* ltris 1.0.17-1
-	* Upstream update
-
-2011-03-09  Jaroslav Lichtblau  <dragonlord at aur.archlinux.org>
-
-	* ltris 1.0.16-1
-	* Upstream update
-
-2009-12-29  Eric Belanger  <eric at archlinux.org>
-
-	* ltris 1.0.14-1
-	* Upstream update
-
-2009-11-07  Eric Belanger  <eric at archlinux.org>
-
-	* ltris 1.0.13-1
-	* Upstream update
-
-2009-04-07  Eric Belanger  <eric at archlinux.org>
-
-	* ltris 1.0.12-1
-	* Fixed score file location and permissions (close FS#13489)
-	* Added ChangeLog

Copied: ltris/repos/community-x86_64/ltris.changelog (from rev 342132, ltris/trunk/ltris.changelog)
===================================================================
--- ltris.changelog	                        (rev 0)
+++ ltris.changelog	2018-06-09 07:50:37 UTC (rev 342133)
@@ -0,0 +1,40 @@
+2013-12-23  Jaroslav Lichtblau  <dragonlord at aur.archlinux.org>
+
+	* ltris 1.0.19-2
+	* FS#37951 fix
+
+2013-11-02  Jaroslav Lichtblau  <dragonlord at aur.archlinux.org>
+
+	* ltris 1.0.19-1
+	* Upstream update
+
+2011-12-18  Jaroslav Lichtblau  <dragonlord at aur.archlinux.org>
+
+	* ltris 1.0.18-1
+	* Upstream update
+
+2011-08-28  Jaroslav Lichtblau  <dragonlord at aur.archlinux.org>
+
+	* ltris 1.0.17-1
+	* Upstream update
+
+2011-03-09  Jaroslav Lichtblau  <dragonlord at aur.archlinux.org>
+
+	* ltris 1.0.16-1
+	* Upstream update
+
+2009-12-29  Eric Belanger  <eric at archlinux.org>
+
+	* ltris 1.0.14-1
+	* Upstream update
+
+2009-11-07  Eric Belanger  <eric at archlinux.org>
+
+	* ltris 1.0.13-1
+	* Upstream update
+
+2009-04-07  Eric Belanger  <eric at archlinux.org>
+
+	* ltris 1.0.12-1
+	* Fixed score file location and permissions (close FS#13489)
+	* Added ChangeLog

Deleted: ltris.install
===================================================================
--- ltris.install	2018-06-09 07:50:16 UTC (rev 342132)
+++ ltris.install	2018-06-09 07:50:37 UTC (rev 342133)
@@ -1,4 +0,0 @@
-post_install() {
-  chown root:games /var/games/ltris.hscr
-  chmod 664 /var/games/ltris.hscr
-}

Copied: ltris/repos/community-x86_64/ltris.install (from rev 342132, ltris/trunk/ltris.install)
===================================================================
--- ltris.install	                        (rev 0)
+++ ltris.install	2018-06-09 07:50:37 UTC (rev 342133)
@@ -0,0 +1,4 @@
+post_install() {
+  chown root:games /var/games/ltris.hscr
+  chmod 664 /var/games/ltris.hscr
+}



More information about the arch-commits mailing list