summaryrefslogtreecommitdiff
path: root/community/cuyo
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/cuyo
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/cuyo')
-rw-r--r--community/cuyo/PKGBUILD28
-rw-r--r--community/cuyo/cuyo.diff32
-rw-r--r--community/cuyo/cuyo.install11
3 files changed, 71 insertions, 0 deletions
diff --git a/community/cuyo/PKGBUILD b/community/cuyo/PKGBUILD
new file mode 100644
index 000000000..eb3e84019
--- /dev/null
+++ b/community/cuyo/PKGBUILD
@@ -0,0 +1,28 @@
+# $Id: PKGBUILD 5434 2009-11-08 13:15:53Z jlichtblau $
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+
+pkgname=cuyo
+pkgver=2.1.1
+pkgrel=4
+pkgdesc="Tetris-style puzzle game for up to two players with a twist."
+arch=('i686' 'x86_64')
+url="http://www.karimmi.de/cuyo/"
+license=('GPL')
+depends=('sdl' 'sdl_mixer' 'sdl_image' 'xdg-utils')
+makedepends=('patch')
+install=$pkgname.install
+source=(http://download.savannah.gnu.org/releases/cuyo/$pkgname-2.~-1.1.tar.gz \
+ $pkgname.diff)
+
+md5sums=('1629b257311c6c55cf657f0fa92dbd92'
+ '923c88e894cfd9c77d75f21b448ee6cf')
+
+build() {
+ cd ${srcdir}/$pkgname-2.~-1.1
+
+ patch -Np1 -i ${srcdir}/$pkgname.diff || return 1
+
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR=${pkgdir} install
+}
diff --git a/community/cuyo/cuyo.diff b/community/cuyo/cuyo.diff
new file mode 100644
index 000000000..3011623d3
--- /dev/null
+++ b/community/cuyo/cuyo.diff
@@ -0,0 +1,32 @@
+diff -ruN cuyo-2.~-1.1-orig/icons/cuyo.desktop cuyo-2.~-1.1/icons/cuyo.desktop
+--- cuyo-2.~-1.1-orig/icons/cuyo.desktop 2007-12-20 18:22:32.000000000 +0100
++++ cuyo-2.~-1.1/icons/cuyo.desktop 2009-11-08 14:08:56.000000000 +0100
+@@ -1,11 +1,13 @@
+ [Desktop Entry]
++Type=Application
+ Name=Cuyo
++GenericName=Cuyo
+ Icon=cuyo
+-Type=Application
++Exec=cuyo
++StartupNotify=true
+ Terminal=false
+-MimeType=application/x-executable
++MimeType=application/x-executable;
+ Categories=Game;BlocksGame;
+-Encoding=UTF-8
+ Comment=A tetris like game with many levels
++Comment[cs]=Hra podobná tetrisu s mnoha úrovněmi
+ Comment[de]=Ein Tetris-artiges Spiel mit vielen Leveln
+-Exec=cuyo
+diff -ruN cuyo-2.~-1.1-orig/src/stringzeug.h cuyo-2.~-1.1/src/stringzeug.h
+--- cuyo-2.~-1.1-orig/src/stringzeug.h 2006-07-03 19:26:23.000000000 +0200
++++ cuyo-2.~-1.1/src/stringzeug.h 2009-11-08 14:08:56.000000000 +0100
+@@ -19,6 +19,7 @@
+ #define STRINGZEUG_H
+
+ #include <config.h>
++#include <cstdarg>
+ #include <string>
+
+
diff --git a/community/cuyo/cuyo.install b/community/cuyo/cuyo.install
new file mode 100644
index 000000000..b711352cb
--- /dev/null
+++ b/community/cuyo/cuyo.install
@@ -0,0 +1,11 @@
+post_install() {
+ which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}