[arch-commits] Commit in kobodeluxe/repos (5 files)

Antonio Rojas arojas at archlinux.org
Sat Sep 29 09:01:17 UTC 2018


    Date: Saturday, September 29, 2018 @ 09:01:16
  Author: arojas
Revision: 387693

archrelease: copy trunk to community-x86_64

Added:
  kobodeluxe/repos/community-x86_64/
  kobodeluxe/repos/community-x86_64/PKGBUILD
    (from rev 387692, kobodeluxe/trunk/PKGBUILD)
  kobodeluxe/repos/community-x86_64/kobodeluxe-0.5.1-glibc2.10.patch
    (from rev 387692, kobodeluxe/trunk/kobodeluxe-0.5.1-glibc2.10.patch)
  kobodeluxe/repos/community-x86_64/kobodeluxe-gcc-4.3.patch
    (from rev 387692, kobodeluxe/trunk/kobodeluxe-gcc-4.3.patch)
  kobodeluxe/repos/community-x86_64/kobodeluxe.install
    (from rev 387692, kobodeluxe/trunk/kobodeluxe.install)

----------------------------------+
 PKGBUILD                         |   48 +++++++++++++++++++++
 kobodeluxe-0.5.1-glibc2.10.patch |   11 ++++
 kobodeluxe-gcc-4.3.patch         |   83 +++++++++++++++++++++++++++++++++++++
 kobodeluxe.install               |   15 ++++++
 4 files changed, 157 insertions(+)

Copied: kobodeluxe/repos/community-x86_64/PKGBUILD (from rev 387692, kobodeluxe/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-09-29 09:01:16 UTC (rev 387693)
@@ -0,0 +1,48 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=kobodeluxe
+pkgver=0.5.1
+pkgrel=6
+pkgdesc="An enhanced version of Akira Higuchi's game XKobo, an addictive space shoot'em up"
+arch=('x86_64')
+url="http://www.olofson.net/kobodl/"
+license=('GPL' 'LGPL')
+depends=('sdl_image' 'hicolor-icon-theme')
+install=kobodeluxe.install
+source=(http://www.olofson.net/kobodl/download/KoboDeluxe-${pkgver}.tar.gz
+        kobodeluxe-gcc-4.3.patch kobodeluxe-0.5.1-glibc2.10.patch)
+sha1sums=('12abe182ccde52050cd23077092d0424d25c3e75'
+          '274dc8e7909bc6f9fab31306c85d992af8b62674'
+          '9d1b3b8cef4a16b6a082fed9f93f1dc12b2a3be0')
+
+prepare() {
+  cd KoboDeluxe-${pkgver}
+  tar -xf icons.tar.gz
+  patch -p0 -i "${srcdir}/kobodeluxe-gcc-4.3.patch"
+  patch -p0 -i "${srcdir}/kobodeluxe-0.5.1-glibc2.10.patch"
+}
+
+build() {
+  cd KoboDeluxe-${pkgver}
+  ./configure --prefix=/usr --localstatedir=/var --sharedstatedir=/var/games
+  make
+}
+
+package() {
+  cd KoboDeluxe-${pkgver}
+  make DESTDIR="${pkgdir}" install
+ 
+  install -D -m644 icons/KDE/kobo-deluxe.desktop "${pkgdir}/usr/share/applications/kobo-deluxe.desktop"
+  for i in 16 22 32 48 64 128 ; do
+    install -D -m644 icons/KDE/icons/${i}x${i}/kobodl.png "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/kobodl.png"
+  done
+
+  chown root:games "${pkgdir}/usr/bin/kobodl"
+  chmod 2755 "${pkgdir}/usr/bin/kobodl"
+  chown root:games "${pkgdir}/var/games"
+  chmod 775 "${pkgdir}/var/games"
+  chown root:games "${pkgdir}/var/games/kobo-deluxe"
+  chmod 775 "${pkgdir}/var/games/kobo-deluxe"
+  chown root:games "${pkgdir}/var/games/kobo-deluxe/scores"
+  chmod 775 "${pkgdir}/var/games/kobo-deluxe/scores"
+}

Copied: kobodeluxe/repos/community-x86_64/kobodeluxe-0.5.1-glibc2.10.patch (from rev 387692, kobodeluxe/trunk/kobodeluxe-0.5.1-glibc2.10.patch)
===================================================================
--- community-x86_64/kobodeluxe-0.5.1-glibc2.10.patch	                        (rev 0)
+++ community-x86_64/kobodeluxe-0.5.1-glibc2.10.patch	2018-09-29 09:01:16 UTC (rev 387693)
@@ -0,0 +1,11 @@
+--- graphics/window.cpp
++++ graphics/window.cpp
+@@ -398,7 +398,7 @@
+ 		 */
+ 		if(token)
+ 		{
+-			char *tok = strchr(txt, token);
++			const char *tok = strchr(txt, token);
+ 			if(tok)
+ 				tokpos = tok-txt;
+ 			else

Copied: kobodeluxe/repos/community-x86_64/kobodeluxe-gcc-4.3.patch (from rev 387692, kobodeluxe/trunk/kobodeluxe-gcc-4.3.patch)
===================================================================
--- community-x86_64/kobodeluxe-gcc-4.3.patch	                        (rev 0)
+++ community-x86_64/kobodeluxe-gcc-4.3.patch	2018-09-29 09:01:16 UTC (rev 387693)
@@ -0,0 +1,83 @@
+--- enemies.h
++++ enemies.h
+@@ -70,9 +70,9 @@
+ extern const enemy_kind bomb2;
+ extern const enemy_kind bombdeto;
+ extern const enemy_kind cannon;
+-extern const enemy_kind pipe1;
++extern const enemy_kind pipeone;
+ extern const enemy_kind core;
+-extern const enemy_kind pipe2;
++extern const enemy_kind pipetwo;
+ extern const enemy_kind rock;
+ extern const enemy_kind ring;
+ extern const enemy_kind enemy_m1;
+@@ -430,7 +430,7 @@
+ 
+ inline int _enemy::is_pipe()
+ {
+-	return ((_state != notuse) && ((ek == &pipe1) || (ek == &pipe2)));
++	return ((_state != notuse) && ((ek == &pipeone) || (ek == &pipetwo)));
+ }
+ 
+ 
+--- enemy.cpp
++++ enemy.cpp
+@@ -713,7 +713,7 @@
+ 
+ void _enemy::kill_cannon()
+ {
+-	enemies.make(&pipe1, CS2PIXEL(x), CS2PIXEL(y));
++	enemies.make(&pipeone, CS2PIXEL(x), CS2PIXEL(y));
+ 	sound.g_base_node_explo(x, y);
+ 	release();
+ }
+@@ -755,10 +755,10 @@
+ 
+ void _enemy::kill_core()
+ {
+-	enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
+-	enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
+-	enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
+-	enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
++	enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
++	enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
++	enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
++	enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
+ 	enemies.make(&explosion4, CS2PIXEL(x), CS2PIXEL(y));
+ 	sound.g_base_core_explo(x, y);
+ 	release();
+@@ -851,7 +851,7 @@
+ 		screen.set_map(x1, y1, m ^ a);
+ 	release();
+ }
+-const enemy_kind pipe1 = {
++const enemy_kind pipeone = {
+ 	0,
+ 	&_enemy::make_pipe1,
+ 	&_enemy::move_pipe1,
+@@ -978,19 +978,19 @@
+ 	}
+ 	p ^= a;
+ 	if(p & U_MASK)
+-		enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
++		enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
+ 	if(p & R_MASK)
+-		enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
++		enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
+ 	if(p & D_MASK)
+-		enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
++		enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
+ 	if(p & L_MASK)
+-		enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
++		enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
+ 	manage.add_score(10);
+ 	release();
+ }
+ 
+ 
+-const enemy_kind pipe2 = {
++const enemy_kind pipetwo = {
+ 	0,
+ 	&_enemy::make_pipe2,
+ 	&_enemy::move_pipe2,

Copied: kobodeluxe/repos/community-x86_64/kobodeluxe.install (from rev 387692, kobodeluxe/trunk/kobodeluxe.install)
===================================================================
--- community-x86_64/kobodeluxe.install	                        (rev 0)
+++ community-x86_64/kobodeluxe.install	2018-09-29 09:01:16 UTC (rev 387693)
@@ -0,0 +1,15 @@
+post_install() {
+  post_upgrade
+}
+
+post_upgrade() {
+  if [ -d usr/share/kobo-deluxe/kobo-deluxe/scores ] ; then
+    mkdir -p var/games/kobo-deluxe/scores/
+    for i in usr/share/kobo-deluxe/kobo-deluxe/scores/* ; do
+      mv $i var/games/kobo-deluxe/scores/
+    done
+    rmdir usr/share/kobo-deluxe/kobo-deluxe/scores
+    rmdir usr/share/kobo-deluxe/kobo-deluxe
+    chgrp -R games var/games/kobo-deluxe/scores/
+  fi
+}



More information about the arch-commits mailing list