[arch-commits] Commit in sasteroids/repos (8 files)

Alexander Rødseth arodseth at archlinux.org
Sat Feb 20 21:59:49 UTC 2016


    Date: Saturday, February 20, 2016 @ 22:59:49
  Author: arodseth
Revision: 162899

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

Added:
  sasteroids/repos/community-i686/PKGBUILD
    (from rev 162898, sasteroids/trunk/PKGBUILD)
  sasteroids/repos/community-i686/makefile.patch
    (from rev 162898, sasteroids/trunk/makefile.patch)
  sasteroids/repos/community-i686/sasteroids.sh
    (from rev 162898, sasteroids/trunk/sasteroids.sh)
  sasteroids/repos/community-i686/sbitmap.patch
    (from rev 162898, sasteroids/trunk/sbitmap.patch)
  sasteroids/repos/community-x86_64/PKGBUILD
    (from rev 162898, sasteroids/trunk/PKGBUILD)
  sasteroids/repos/community-x86_64/makefile.patch
    (from rev 162898, sasteroids/trunk/makefile.patch)
  sasteroids/repos/community-x86_64/sasteroids.sh
    (from rev 162898, sasteroids/trunk/sasteroids.sh)
  sasteroids/repos/community-x86_64/sbitmap.patch
    (from rev 162898, sasteroids/trunk/sbitmap.patch)

---------------------------------+
 community-i686/PKGBUILD         |   48 ++++++++++++++++++++++++++++++++++++++
 community-i686/makefile.patch   |   33 ++++++++++++++++++++++++++
 community-i686/sasteroids.sh    |    3 ++
 community-i686/sbitmap.patch    |   19 +++++++++++++++
 community-x86_64/PKGBUILD       |   48 ++++++++++++++++++++++++++++++++++++++
 community-x86_64/makefile.patch |   33 ++++++++++++++++++++++++++
 community-x86_64/sasteroids.sh  |    3 ++
 community-x86_64/sbitmap.patch  |   19 +++++++++++++++
 8 files changed, 206 insertions(+)

Copied: sasteroids/repos/community-i686/PKGBUILD (from rev 162898, sasteroids/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-02-20 21:59:49 UTC (rev 162899)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyprot at archlinux.org>
+# Contributor: Matthew Stewart <stewartmatthew6 at gmail.com>
+
+pkgname=sasteroids
+pkgver=3.0.1
+pkgrel=4
+pkgdesc='SDL Asteroids'
+arch=('x86_64' 'i686')
+url='http://sdlsas.sourceforge.net/'
+license=('GPL')
+depends=('sdl' 'sdl_image' 'sdl_ttf' 'sdl_mixer' 'mesa' 'glu')
+makedepends=('setconf' 'gendesk' 'glu')
+source=("http://sourceforge.net/projects/sdlsas/files/SDL%20Sasteroids%20Source%20Releases/$pkgver/SDLSasteroids-$pkgver.tar.gz"
+        "$pkgname.png::http://icons.iconarchive.com/icons/etherbrian/space-bits/32/Asteroids-icon.png"
+        "$pkgname.sh"
+        'sbitmap.patch'
+        'makefile.patch')
+sha256sums=('f447a85d75913ee9d1be0bba68813e0627a4c163ab5d12c7fd5a8ea5f455502c'
+            'fc6ded2d7a309333eb4cad2e6e03305e43827690ecbd4ebb01012c8598db1f49'
+            '6f2ca922eb0be29d6866933aece1cc38dd224adb5f04834cdd0cb12cd7739cbf'
+            'eb2139434aae832b395b1d1f6a4ef188f69ebd7c5ed5128df9129027ff9a4ac6'
+            '6b35ad008d29cd1433cdbc6094231b5c399e5fc10a65670a67177e44c0f259c6')
+
+prepare() {
+  gendesk -f --pkgname "$pkgname" --pkgdesc "$pkgdesc" \
+    --categories 'Game;ArcadeGame'
+  setconf "SDLSasteroids-$pkgver/src/Makefile" CFLAGS '$(INC) $(OPTS) -w'
+  patch -p1 -i sbitmap.patch
+  patch -p1 -i makefile.patch
+}
+
+build() {
+  export CXXFLAGS="$CXXFLAGS -w"
+  make -C "SDLSasteroids-$pkgver"
+}
+
+package() {
+  make -C "SDLSasteroids-$pkgver" DESTDIR="$pkgdir" install
+  mv "$pkgdir/usr/bin/sasteroids" "$pkgdir/usr/bin/sasteroids.elf"
+  install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/sasteroids"
+  install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
+  install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+  install -Dm644 "$pkgdir/usr/man/man6" "$pkgdir/usr/share/man/man6/sasteroids"
+  rm "$pkgdir/usr/man/man6"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: sasteroids/repos/community-i686/makefile.patch (from rev 162898, sasteroids/trunk/makefile.patch)
===================================================================
--- community-i686/makefile.patch	                        (rev 0)
+++ community-i686/makefile.patch	2016-02-20 21:59:49 UTC (rev 162899)
@@ -0,0 +1,33 @@
+*** src/SDLSasteroids-3.0.1/Makefile	2011-01-01 16:12:18.000000000 +0000
+--- src/SDLSasteroids-3.0.1/Makefile2	2011-01-01 16:12:09.000000000 +0000
+***************
+*** 1,9 ****
+  # Makefile for sasteroids
+  
+  # Edit Bellow to change the installation locations
+! GAMEDIR=/usr/share/sasteroids/
+! BINDIR=/usr/bin/
+! MANDIR=/usr/man
+  
+  # For OpenGL
+  EXTRA_DEFINES="-DWANT_OPENGL -DHAVE_SOUND"
+--- 1,9 ----
+  # Makefile for sasteroids
+  
+  # Edit Bellow to change the installation locations
+! GAMEDIR=$(DESTDIR)/usr/share/sasteroids/
+! BINDIR=$(DESTDIR)/usr/bin/
+! MANDIR=$(DESTDIR)/usr/man
+  
+  # For OpenGL
+  EXTRA_DEFINES="-DWANT_OPENGL -DHAVE_SOUND"
+***************
+*** 24,29 ****
+--- 24,30 ----
+  	install -d $(GAMEDIR)/sounds
+  	install -d $(GAMEDIR)/fonts
+  	install -d $(BINDIR)
++ 	install -d $(MANDIR)
+  	install --strip --mode=755 src/sasteroids $(BINDIR)
+  	install --mode=644 sasteroids.6 $(MANDIR)/man6
+  	install --mode=644 fonts/nicefont.ttf $(GAMEDIR)/fonts/

Copied: sasteroids/repos/community-i686/sasteroids.sh (from rev 162898, sasteroids/trunk/sasteroids.sh)
===================================================================
--- community-i686/sasteroids.sh	                        (rev 0)
+++ community-i686/sasteroids.sh	2016-02-20 21:59:49 UTC (rev 162899)
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/sasteroids
+exec /usr/bin/sasteroids.elf

Copied: sasteroids/repos/community-i686/sbitmap.patch (from rev 162898, sasteroids/trunk/sbitmap.patch)
===================================================================
--- community-i686/sbitmap.patch	                        (rev 0)
+++ community-i686/sbitmap.patch	2016-02-20 21:59:49 UTC (rev 162899)
@@ -0,0 +1,19 @@
+*** src/SDLSasteroids-3.0.1/src/sbitmap.h	2003-08-16 15:57:14.000000000 +0000
+--- ../SDLSasteroids-3.0.1/src/sbitmap.h	2011-01-01 15:45:03.000000000 +0000
+***************
+*** 36,42 ****
+    void LoadImage(char* path);
+    void LoadSurface(SDL_Surface* surface);
+  
+!   void put(float x, float y, float rotate = 1.0f, float rotate = 1.0f, float layer = 0.0f);
+    void putA(float x, float y, float layer = 0.0f, float alpha = 1.0f);
+    
+    inline float width() const
+--- 36,42 ----
+    void LoadImage(char* path);
+    void LoadSurface(SDL_Surface* surface);
+  
+!   void put(float x, float y, float sf = 1.0f, float rotate = 1.0f, float layer = 0.0f);
+    void putA(float x, float y, float layer = 0.0f, float alpha = 1.0f);
+    
+    inline float width() const

Copied: sasteroids/repos/community-x86_64/PKGBUILD (from rev 162898, sasteroids/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-02-20 21:59:49 UTC (rev 162899)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyprot at archlinux.org>
+# Contributor: Matthew Stewart <stewartmatthew6 at gmail.com>
+
+pkgname=sasteroids
+pkgver=3.0.1
+pkgrel=4
+pkgdesc='SDL Asteroids'
+arch=('x86_64' 'i686')
+url='http://sdlsas.sourceforge.net/'
+license=('GPL')
+depends=('sdl' 'sdl_image' 'sdl_ttf' 'sdl_mixer' 'mesa' 'glu')
+makedepends=('setconf' 'gendesk' 'glu')
+source=("http://sourceforge.net/projects/sdlsas/files/SDL%20Sasteroids%20Source%20Releases/$pkgver/SDLSasteroids-$pkgver.tar.gz"
+        "$pkgname.png::http://icons.iconarchive.com/icons/etherbrian/space-bits/32/Asteroids-icon.png"
+        "$pkgname.sh"
+        'sbitmap.patch'
+        'makefile.patch')
+sha256sums=('f447a85d75913ee9d1be0bba68813e0627a4c163ab5d12c7fd5a8ea5f455502c'
+            'fc6ded2d7a309333eb4cad2e6e03305e43827690ecbd4ebb01012c8598db1f49'
+            '6f2ca922eb0be29d6866933aece1cc38dd224adb5f04834cdd0cb12cd7739cbf'
+            'eb2139434aae832b395b1d1f6a4ef188f69ebd7c5ed5128df9129027ff9a4ac6'
+            '6b35ad008d29cd1433cdbc6094231b5c399e5fc10a65670a67177e44c0f259c6')
+
+prepare() {
+  gendesk -f --pkgname "$pkgname" --pkgdesc "$pkgdesc" \
+    --categories 'Game;ArcadeGame'
+  setconf "SDLSasteroids-$pkgver/src/Makefile" CFLAGS '$(INC) $(OPTS) -w'
+  patch -p1 -i sbitmap.patch
+  patch -p1 -i makefile.patch
+}
+
+build() {
+  export CXXFLAGS="$CXXFLAGS -w"
+  make -C "SDLSasteroids-$pkgver"
+}
+
+package() {
+  make -C "SDLSasteroids-$pkgver" DESTDIR="$pkgdir" install
+  mv "$pkgdir/usr/bin/sasteroids" "$pkgdir/usr/bin/sasteroids.elf"
+  install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/sasteroids"
+  install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
+  install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+  install -Dm644 "$pkgdir/usr/man/man6" "$pkgdir/usr/share/man/man6/sasteroids"
+  rm "$pkgdir/usr/man/man6"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: sasteroids/repos/community-x86_64/makefile.patch (from rev 162898, sasteroids/trunk/makefile.patch)
===================================================================
--- community-x86_64/makefile.patch	                        (rev 0)
+++ community-x86_64/makefile.patch	2016-02-20 21:59:49 UTC (rev 162899)
@@ -0,0 +1,33 @@
+*** src/SDLSasteroids-3.0.1/Makefile	2011-01-01 16:12:18.000000000 +0000
+--- src/SDLSasteroids-3.0.1/Makefile2	2011-01-01 16:12:09.000000000 +0000
+***************
+*** 1,9 ****
+  # Makefile for sasteroids
+  
+  # Edit Bellow to change the installation locations
+! GAMEDIR=/usr/share/sasteroids/
+! BINDIR=/usr/bin/
+! MANDIR=/usr/man
+  
+  # For OpenGL
+  EXTRA_DEFINES="-DWANT_OPENGL -DHAVE_SOUND"
+--- 1,9 ----
+  # Makefile for sasteroids
+  
+  # Edit Bellow to change the installation locations
+! GAMEDIR=$(DESTDIR)/usr/share/sasteroids/
+! BINDIR=$(DESTDIR)/usr/bin/
+! MANDIR=$(DESTDIR)/usr/man
+  
+  # For OpenGL
+  EXTRA_DEFINES="-DWANT_OPENGL -DHAVE_SOUND"
+***************
+*** 24,29 ****
+--- 24,30 ----
+  	install -d $(GAMEDIR)/sounds
+  	install -d $(GAMEDIR)/fonts
+  	install -d $(BINDIR)
++ 	install -d $(MANDIR)
+  	install --strip --mode=755 src/sasteroids $(BINDIR)
+  	install --mode=644 sasteroids.6 $(MANDIR)/man6
+  	install --mode=644 fonts/nicefont.ttf $(GAMEDIR)/fonts/

Copied: sasteroids/repos/community-x86_64/sasteroids.sh (from rev 162898, sasteroids/trunk/sasteroids.sh)
===================================================================
--- community-x86_64/sasteroids.sh	                        (rev 0)
+++ community-x86_64/sasteroids.sh	2016-02-20 21:59:49 UTC (rev 162899)
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/share/sasteroids
+exec /usr/bin/sasteroids.elf

Copied: sasteroids/repos/community-x86_64/sbitmap.patch (from rev 162898, sasteroids/trunk/sbitmap.patch)
===================================================================
--- community-x86_64/sbitmap.patch	                        (rev 0)
+++ community-x86_64/sbitmap.patch	2016-02-20 21:59:49 UTC (rev 162899)
@@ -0,0 +1,19 @@
+*** src/SDLSasteroids-3.0.1/src/sbitmap.h	2003-08-16 15:57:14.000000000 +0000
+--- ../SDLSasteroids-3.0.1/src/sbitmap.h	2011-01-01 15:45:03.000000000 +0000
+***************
+*** 36,42 ****
+    void LoadImage(char* path);
+    void LoadSurface(SDL_Surface* surface);
+  
+!   void put(float x, float y, float rotate = 1.0f, float rotate = 1.0f, float layer = 0.0f);
+    void putA(float x, float y, float layer = 0.0f, float alpha = 1.0f);
+    
+    inline float width() const
+--- 36,42 ----
+    void LoadImage(char* path);
+    void LoadSurface(SDL_Surface* surface);
+  
+!   void put(float x, float y, float sf = 1.0f, float rotate = 1.0f, float layer = 0.0f);
+    void putA(float x, float y, float layer = 0.0f, float alpha = 1.0f);
+    
+    inline float width() const



More information about the arch-commits mailing list