[arch-commits] Commit in pathological/repos (12 files)
Eric Bélanger
eric at archlinux.org
Mon Oct 1 23:04:53 UTC 2012
Date: Monday, October 1, 2012 @ 19:04:53
Author: eric
Revision: 167400
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
pathological/repos/staging-i686/
pathological/repos/staging-i686/PKGBUILD
(from rev 167399, pathological/trunk/PKGBUILD)
pathological/repos/staging-i686/encoding.patch
(from rev 167399, pathological/trunk/encoding.patch)
pathological/repos/staging-i686/pathological.desktop
(from rev 167399, pathological/trunk/pathological.desktop)
pathological/repos/staging-i686/pathological.install
(from rev 167399, pathological/trunk/pathological.install)
pathological/repos/staging-i686/pygame_181.patch
(from rev 167399, pathological/trunk/pygame_181.patch)
pathological/repos/staging-x86_64/
pathological/repos/staging-x86_64/PKGBUILD
(from rev 167399, pathological/trunk/PKGBUILD)
pathological/repos/staging-x86_64/encoding.patch
(from rev 167399, pathological/trunk/encoding.patch)
pathological/repos/staging-x86_64/pathological.desktop
(from rev 167399, pathological/trunk/pathological.desktop)
pathological/repos/staging-x86_64/pathological.install
(from rev 167399, pathological/trunk/pathological.install)
pathological/repos/staging-x86_64/pygame_181.patch
(from rev 167399, pathological/trunk/pygame_181.patch)
-------------------------------------+
staging-i686/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++
staging-i686/encoding.patch | 8 +++++++
staging-i686/pathological.desktop | 9 ++++++++
staging-i686/pathological.install | 29 +++++++++++++++++++++++++
staging-i686/pygame_181.patch | 10 ++++++++
staging-x86_64/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++
staging-x86_64/encoding.patch | 8 +++++++
staging-x86_64/pathological.desktop | 9 ++++++++
staging-x86_64/pathological.install | 29 +++++++++++++++++++++++++
staging-x86_64/pygame_181.patch | 10 ++++++++
10 files changed, 188 insertions(+)
Copied: pathological/repos/staging-i686/PKGBUILD (from rev 167399, pathological/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2012-10-01 23:04:53 UTC (rev 167400)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=pathological
+pkgver=1.1.3
+pkgrel=8
+pkgdesc="A puzzle game with the same feel as frozen bubble"
+arch=('i686' 'x86_64')
+url="http://pathological.sourceforge.net/"
+license=('GPL')
+depends=('python2-pygame')
+makedepends=('netpbm')
+install=pathological.install
+source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ pathological.desktop pygame_181.patch encoding.patch)
+sha1sums=('70b1c9e12704c7fd3b301aa90bceee2e8373b7b9'
+ '9b57f854ce9621542d810a21c61325de343950d7'
+ '6f0aa0f74a87bd53771f2db6d3117981c4f070d3'
+ '7dbaa9ced7da0094280425a68b4c8db3382f230a')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p0 < ../encoding.patch
+ patch -p1 < ../pygame_181.patch
+ sed -i 's|X11R6/include/X11|share|' Makefile
+ sed -i 's|usr/games|usr/bin|' Makefile
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' "${pkgdir}/usr/share/games/pathological/pathological.py"
+ install -D -m644 ../pathological.desktop "${pkgdir}/usr/share/applications/pathological.desktop"
+ chown root:games "${pkgdir}/var/games"
+ chmod 775 "${pkgdir}/var/games"
+ rm "${pkgdir}/var/games/pathological_scores"
+}
Copied: pathological/repos/staging-i686/encoding.patch (from rev 167399, pathological/trunk/encoding.patch)
===================================================================
--- staging-i686/encoding.patch (rev 0)
+++ staging-i686/encoding.patch 2012-10-01 23:04:53 UTC (rev 167400)
@@ -0,0 +1,8 @@
+--- pathological.py.orig 2009-07-10 01:49:39.000000000 -0400
++++ pathological.py 2009-07-10 01:49:53.000000000 -0400
+@@ -1,4 +1,5 @@
+ #!/usr/bin/python
++# -*- coding: utf-8 -*-
+ """
+ Copyright (C) 2003 John-Paul Gignac
+
Copied: pathological/repos/staging-i686/pathological.desktop (from rev 167399, pathological/trunk/pathological.desktop)
===================================================================
--- staging-i686/pathological.desktop (rev 0)
+++ staging-i686/pathological.desktop 2012-10-01 23:04:53 UTC (rev 167400)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Pathological
+Comment=A puzzle game involving paths and marbles
+Exec=pathological
+Icon=pathological.xpm
+Terminal=false
+Type=Application
+Categories=Application;Game;
Copied: pathological/repos/staging-i686/pathological.install (from rev 167399, pathological/trunk/pathological.install)
===================================================================
--- staging-i686/pathological.install (rev 0)
+++ staging-i686/pathological.install 2012-10-01 23:04:53 UTC (rev 167400)
@@ -0,0 +1,29 @@
+post_install() {
+if [ ! -e var/games/pathological_scores ]; then
+ cat << _EOF > var/games/pathological_scores
+0 all-boards 1 John-Paul
+0 all-boards 1 Kim
+0 all-boards 1 Matths
+0 all-boards 1 Carrie
+0 all-boards 1 Mike
+0 all-boards 1 Dale
+0 all-boards 1 Alesh
+0 all-boards 1 Thanks to
+0 all-boards 1 everyone who
+0 all-boards 1 contributed!
+_EOF
+fi
+ chown root:games var/games/pathological_scores
+ chmod 664 var/games/pathological_scores
+}
+
+pre_upgrade() {
+ if [ -e usr/share/games/pathological/pathological_scores ]; then
+ mv usr/share/games/pathological/pathological_scores var/games/
+ fi
+}
+
+post_upgrade() {
+ chown root:games var/games/pathological_scores
+ chmod 664 var/games/pathological_scores
+}
Copied: pathological/repos/staging-i686/pygame_181.patch (from rev 167399, pathological/trunk/pygame_181.patch)
===================================================================
--- staging-i686/pygame_181.patch (rev 0)
+++ staging-i686/pygame_181.patch 2012-10-01 23:04:53 UTC (rev 167400)
@@ -0,0 +1,10 @@
+--- pathological-1.1.3.orig.orig/pathological.py 2009-04-15 10:50:11.000000000 -0400
++++ pathological-1.1.3.orig/pathological.py 2009-04-15 10:50:56.000000000 -0400
+@@ -169,6 +169,7 @@
+ if not pygame.mixer or not pygame.mixer.music:
+ print "Background music not available."
+ return
++ pygame.mixer.music.stop()
+ fullname = os.path.join('music', name)
+ try:
+ pygame.mixer.music.load(fullname)
Copied: pathological/repos/staging-x86_64/PKGBUILD (from rev 167399, pathological/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2012-10-01 23:04:53 UTC (rev 167400)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=pathological
+pkgver=1.1.3
+pkgrel=8
+pkgdesc="A puzzle game with the same feel as frozen bubble"
+arch=('i686' 'x86_64')
+url="http://pathological.sourceforge.net/"
+license=('GPL')
+depends=('python2-pygame')
+makedepends=('netpbm')
+install=pathological.install
+source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ pathological.desktop pygame_181.patch encoding.patch)
+sha1sums=('70b1c9e12704c7fd3b301aa90bceee2e8373b7b9'
+ '9b57f854ce9621542d810a21c61325de343950d7'
+ '6f0aa0f74a87bd53771f2db6d3117981c4f070d3'
+ '7dbaa9ced7da0094280425a68b4c8db3382f230a')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p0 < ../encoding.patch
+ patch -p1 < ../pygame_181.patch
+ sed -i 's|X11R6/include/X11|share|' Makefile
+ sed -i 's|usr/games|usr/bin|' Makefile
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' "${pkgdir}/usr/share/games/pathological/pathological.py"
+ install -D -m644 ../pathological.desktop "${pkgdir}/usr/share/applications/pathological.desktop"
+ chown root:games "${pkgdir}/var/games"
+ chmod 775 "${pkgdir}/var/games"
+ rm "${pkgdir}/var/games/pathological_scores"
+}
Copied: pathological/repos/staging-x86_64/encoding.patch (from rev 167399, pathological/trunk/encoding.patch)
===================================================================
--- staging-x86_64/encoding.patch (rev 0)
+++ staging-x86_64/encoding.patch 2012-10-01 23:04:53 UTC (rev 167400)
@@ -0,0 +1,8 @@
+--- pathological.py.orig 2009-07-10 01:49:39.000000000 -0400
++++ pathological.py 2009-07-10 01:49:53.000000000 -0400
+@@ -1,4 +1,5 @@
+ #!/usr/bin/python
++# -*- coding: utf-8 -*-
+ """
+ Copyright (C) 2003 John-Paul Gignac
+
Copied: pathological/repos/staging-x86_64/pathological.desktop (from rev 167399, pathological/trunk/pathological.desktop)
===================================================================
--- staging-x86_64/pathological.desktop (rev 0)
+++ staging-x86_64/pathological.desktop 2012-10-01 23:04:53 UTC (rev 167400)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Pathological
+Comment=A puzzle game involving paths and marbles
+Exec=pathological
+Icon=pathological.xpm
+Terminal=false
+Type=Application
+Categories=Application;Game;
Copied: pathological/repos/staging-x86_64/pathological.install (from rev 167399, pathological/trunk/pathological.install)
===================================================================
--- staging-x86_64/pathological.install (rev 0)
+++ staging-x86_64/pathological.install 2012-10-01 23:04:53 UTC (rev 167400)
@@ -0,0 +1,29 @@
+post_install() {
+if [ ! -e var/games/pathological_scores ]; then
+ cat << _EOF > var/games/pathological_scores
+0 all-boards 1 John-Paul
+0 all-boards 1 Kim
+0 all-boards 1 Matths
+0 all-boards 1 Carrie
+0 all-boards 1 Mike
+0 all-boards 1 Dale
+0 all-boards 1 Alesh
+0 all-boards 1 Thanks to
+0 all-boards 1 everyone who
+0 all-boards 1 contributed!
+_EOF
+fi
+ chown root:games var/games/pathological_scores
+ chmod 664 var/games/pathological_scores
+}
+
+pre_upgrade() {
+ if [ -e usr/share/games/pathological/pathological_scores ]; then
+ mv usr/share/games/pathological/pathological_scores var/games/
+ fi
+}
+
+post_upgrade() {
+ chown root:games var/games/pathological_scores
+ chmod 664 var/games/pathological_scores
+}
Copied: pathological/repos/staging-x86_64/pygame_181.patch (from rev 167399, pathological/trunk/pygame_181.patch)
===================================================================
--- staging-x86_64/pygame_181.patch (rev 0)
+++ staging-x86_64/pygame_181.patch 2012-10-01 23:04:53 UTC (rev 167400)
@@ -0,0 +1,10 @@
+--- pathological-1.1.3.orig.orig/pathological.py 2009-04-15 10:50:11.000000000 -0400
++++ pathological-1.1.3.orig/pathological.py 2009-04-15 10:50:56.000000000 -0400
+@@ -169,6 +169,7 @@
+ if not pygame.mixer or not pygame.mixer.music:
+ print "Background music not available."
+ return
++ pygame.mixer.music.stop()
+ fullname = os.path.join('music', name)
+ try:
+ pygame.mixer.music.load(fullname)
More information about the arch-commits
mailing list