diff options
Diffstat (limited to 'extra/kobodeluxe')
-rw-r--r-- | extra/kobodeluxe/ChangeLog | 8 | ||||
-rw-r--r-- | extra/kobodeluxe/PKGBUILD | 44 | ||||
-rw-r--r-- | extra/kobodeluxe/kobodeluxe-gcc-4.3.patch | 83 | ||||
-rw-r--r-- | extra/kobodeluxe/kobodeluxe.install | 21 |
4 files changed, 156 insertions, 0 deletions
diff --git a/extra/kobodeluxe/ChangeLog b/extra/kobodeluxe/ChangeLog new file mode 100644 index 000000000..08b4c2dec --- /dev/null +++ b/extra/kobodeluxe/ChangeLog @@ -0,0 +1,8 @@ +2009-01-06 Eric Belanger <eric@archlinux.org> + + * kobodeluxe 0.5.1-2 + * Fixed build issue + * Added game group support + * Added .desktop file and icons + * Improved package description + * Added ChangeLog diff --git a/extra/kobodeluxe/PKGBUILD b/extra/kobodeluxe/PKGBUILD new file mode 100644 index 000000000..defcb760c --- /dev/null +++ b/extra/kobodeluxe/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 23389 2009-01-09 00:47:54Z eric $ +# Maintainer: Eric Belanger <eric@archlinux.org> +# Contributor: Damir Perisa <damir.perisa@bluewin.ch> + +pkgname=kobodeluxe +pkgver=0.5.1 +pkgrel=2 +pkgdesc="An enhanced version of Akira Higuchi's game XKobo, an addictive space shoot'em up" +arch=('i686' 'x86_64') +url="http://www.olofson.net/kobodl/" +license=('GPL' 'LGPL') +depends=('gcc-libs' 'libjpeg' 'libpng' 'sdl' 'sdl_image' 'sdl_mixer') +install=kobodeluxe.install +source=(http://www.olofson.net/kobodl/download/KoboDeluxe-${pkgver}.tar.gz kobodeluxe-gcc-4.3.patch) +md5sums=('cf765559461213d651c7be042507b767' '2b76306ec997fdc64986b4425e5b7814') +sha1sums=('12abe182ccde52050cd23077092d0424d25c3e75' '274dc8e7909bc6f9fab31306c85d992af8b62674') + +build() { + cd ${srcdir}/KoboDeluxe-${pkgver} + patch -p0 < ../kobodeluxe-gcc-4.3.patch + ./configure --prefix=/usr --localstatedir=/var --sharedstatedir=/var/games || return 1 + make || return 1 + make DESTDIR=${pkgdir} install || return 1 + + tar -xzf icons.tar.gz + install -D -m644 icons/KDE/kobo-deluxe.desktop ${pkgdir}/usr/share/applications/kobo-deluxe.desktop + install -D -m644 icons/KDE/icons/128x128/kobodl.png ${pkgdir}/usr/share/icons/hicolor/128x128/kobodl.png + install -D -m644 icons/KDE/icons/16x16/kobodl.png ${pkgdir}/usr/share/icons/hicolor/16x16/kobodl.png + install -D -m644 icons/KDE/icons/22x22/kobodl.png ${pkgdir}/usr/share/icons/hicolor/22x22/kobodl.png + install -D -m644 icons/KDE/icons/32x32/kobodl.png ${pkgdir}/usr/share/icons/hicolor/32x32/kobodl.png + install -D -m644 icons/KDE/icons/48x48/kobodl.png ${pkgdir}/usr/share/icons/hicolor/48x48/kobodl.png + install -D -m644 icons/KDE/icons/64x64/kobodl.png ${pkgdir}/usr/share/icons/hicolor/64x64/kobodl.png + install -D -m644 icons/Ubuntu/kobo-icon.xpm ${pkgdir}/usr/share/pixmaps/kobo-icon.xpm + ln -s /usr/share/icons/hicolor/48x48/kobodl.png ${pkgdir}/usr/share/icons/kobodl.png + + 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 +} diff --git a/extra/kobodeluxe/kobodeluxe-gcc-4.3.patch b/extra/kobodeluxe/kobodeluxe-gcc-4.3.patch new file mode 100644 index 000000000..98451bb29 --- /dev/null +++ b/extra/kobodeluxe/kobodeluxe-gcc-4.3.patch @@ -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, diff --git a/extra/kobodeluxe/kobodeluxe.install b/extra/kobodeluxe/kobodeluxe.install new file mode 100644 index 000000000..7136b4880 --- /dev/null +++ b/extra/kobodeluxe/kobodeluxe.install @@ -0,0 +1,21 @@ +post_install() { + post_upgrade +} + +post_upgrade() { + if [ -d usr/share/kobo-deluxe/kobo-deluxe/scores ] ; then + 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 + # update icon cache if gtk2 is installed. I don't want to add a gtk2 depends just for that. + [ -x usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_remove() { + # update icon cache if gtk2 is installed. I don't want to add a gtk2 depends just for that. + [ -x usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |