[arch-commits] Commit in chromium-bsu/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Nov 10 00:17:41 UTC 2018


    Date: Saturday, November 10, 2018 @ 00:17:40
  Author: foutrelis
Revision: 405480

archrelease: copy trunk to community-staging-x86_64

Added:
  chromium-bsu/repos/community-staging-x86_64/
  chromium-bsu/repos/community-staging-x86_64/PKGBUILD
    (from rev 405479, chromium-bsu/trunk/PKGBUILD)
  chromium-bsu/repos/community-staging-x86_64/use_fabs_for_floats.patch
    (from rev 405479, chromium-bsu/trunk/use_fabs_for_floats.patch)

---------------------------+
 PKGBUILD                  |   34 ++++++++++++++++++++++++++++++++++
 use_fabs_for_floats.patch |   26 ++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)

Copied: chromium-bsu/repos/community-staging-x86_64/PKGBUILD (from rev 405479, chromium-bsu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-10 00:17:40 UTC (rev 405480)
@@ -0,0 +1,34 @@
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Contributor: William Rea <sillywilly at gmail.com>
+
+pkgname=chromium-bsu
+pkgver=0.9.16
+pkgrel=2
+pkgdesc="A fast paced top scrolling shooter"
+arch=('x86_64')
+url="http://chromium-bsu.sourceforge.net/"
+license=('custom:artistic')
+depends=('freeglut' 'glu' 'sdl_image' 'openal' 'freealut' 'ftgl' 'fontconfig')
+source=(https://downloads.sourceforge.net/project/chromium-bsu/Chromium%20B.S.U.%20source%20code/chromium-bsu-$pkgver.tar.gz use_fabs_for_floats.patch)
+md5sums=('3d3fb58fa0503061605f51a0c2563bad'
+         'f229516bbc25e7b2dc136674a4c090b4')
+
+prepare() {
+  cd $srcdir/$pkgname-$pkgver
+
+  patch -Np1 -i $srcdir/use_fabs_for_floats.patch
+}
+
+build(){
+  cd $srcdir/$pkgname-$pkgver
+  ./configure --prefix=/usr
+  make
+}
+
+package() {
+  cd $srcdir/$pkgname-$pkgver
+  make DESTDIR=$pkgdir install
+
+  install -Dm644 COPYING $pkgdir/usr/share/licenses/chromium-bsu/LICENSE
+}
+

Copied: chromium-bsu/repos/community-staging-x86_64/use_fabs_for_floats.patch (from rev 405479, chromium-bsu/trunk/use_fabs_for_floats.patch)
===================================================================
--- community-staging-x86_64/use_fabs_for_floats.patch	                        (rev 0)
+++ community-staging-x86_64/use_fabs_for_floats.patch	2018-11-10 00:17:40 UTC (rev 405480)
@@ -0,0 +1,26 @@
+diff -aur chromium-bsu-0.9.16/src/MainSDL_Event.cpp chromium-bsu-0.9.16.new/src/MainSDL_Event.cpp
+--- chromium-bsu-0.9.16/src/MainSDL_Event.cpp	2016-06-30 17:26:58.000000000 +0200
++++ chromium-bsu-0.9.16.new/src/MainSDL_Event.cpp	2016-08-14 21:37:55.746045707 +0200
+@@ -515,14 +515,14 @@
+ 		#define KP8 SDLK_KP8
+ 		#define KP9 SDLK_KP9
+ #endif
+-		if( keystate[LEFT]  || keystate[KP4] ) key_speed_x -= 2.0 + abs(key_speed_x)*0.4;
+-		if( keystate[RIGHT] || keystate[KP6] ) key_speed_x += 2.0 + abs(key_speed_x)*0.4;
+-		if( keystate[UP]    || keystate[KP8] ) key_speed_y -= 2.0 + abs(key_speed_y)*0.4;
+-		if( keystate[DOWN]  || keystate[KP2] ) key_speed_y += 2.0 + abs(key_speed_y)*0.4;
+-		if( keystate[KP7] ){ key_speed_x -= 2.0 + abs(key_speed_x)*0.4; key_speed_y -= 2.0 + abs(key_speed_y)*0.4; }
+-		if( keystate[KP9] ){ key_speed_x += 2.0 + abs(key_speed_x)*0.4; key_speed_y -= 2.0 + abs(key_speed_y)*0.4; }
+-		if( keystate[KP3] ){ key_speed_x += 2.0 + abs(key_speed_x)*0.4; key_speed_y += 2.0 + abs(key_speed_y)*0.4; }
+-		if( keystate[KP1] ){ key_speed_x -= 2.0 + abs(key_speed_x)*0.4; key_speed_y += 2.0 + abs(key_speed_y)*0.4; }
++		if( keystate[LEFT]  || keystate[KP4] ) key_speed_x -= 2.0 + fabs(key_speed_x)*0.4;
++		if( keystate[RIGHT] || keystate[KP6] ) key_speed_x += 2.0 + fabs(key_speed_x)*0.4;
++		if( keystate[UP]    || keystate[KP8] ) key_speed_y -= 2.0 + fabs(key_speed_y)*0.4;
++		if( keystate[DOWN]  || keystate[KP2] ) key_speed_y += 2.0 + fabs(key_speed_y)*0.4;
++		if( keystate[KP7] ){ key_speed_x -= 2.0 + fabs(key_speed_x)*0.4; key_speed_y -= 2.0 + fabs(key_speed_y)*0.4; }
++		if( keystate[KP9] ){ key_speed_x += 2.0 + fabs(key_speed_x)*0.4; key_speed_y -= 2.0 + fabs(key_speed_y)*0.4; }
++		if( keystate[KP3] ){ key_speed_x += 2.0 + fabs(key_speed_x)*0.4; key_speed_y += 2.0 + fabs(key_speed_y)*0.4; }
++		if( keystate[KP1] ){ key_speed_x -= 2.0 + fabs(key_speed_x)*0.4; key_speed_y += 2.0 + fabs(key_speed_y)*0.4; }
+ 		//float s = (1.0-game->speedAdj)+(game->speedAdj*0.7);
+ 		float s = 0.7;
+ 		key_speed_x *= s;


More information about the arch-commits mailing list