[arch-commits] Commit in pathological/trunk (ChangeLog PKGBUILD)

Eric Bélanger eric at archlinux.org
Tue Aug 24 03:21:52 EDT 2010


    Date: Tuesday, August 24, 2010 @ 03:21:52
  Author: eric
Revision: 88505

upgpkg: pathological 1.1.3-6
Rebuilt for python2

Modified:
  pathological/trunk/ChangeLog
  pathological/trunk/PKGBUILD

-----------+
 ChangeLog |    5 +++++
 PKGBUILD  |   26 ++++++++++++++------------
 2 files changed, 19 insertions(+), 12 deletions(-)

Modified: ChangeLog
===================================================================
--- ChangeLog	2010-08-24 07:19:14 UTC (rev 88504)
+++ ChangeLog	2010-08-24 07:21:52 UTC (rev 88505)
@@ -1,3 +1,8 @@
+2010-08-24  Eric Belanger  <eric at archlinux.org>
+
+	* pathological 1.1.3-6
+	* Rebuilt against python2
+
 2009-07-10  Eric Belanger  <eric at archlinux.org>
 
 	* pathological 1.1.3-5

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-08-24 07:19:14 UTC (rev 88504)
+++ PKGBUILD	2010-08-24 07:21:52 UTC (rev 88505)
@@ -4,7 +4,7 @@
 
 pkgname=pathological
 pkgver=1.1.3
-pkgrel=5
+pkgrel=6
 pkgdesc="A puzzle game with the same feel as frozen bubble"
 arch=('i686' 'x86_64')
 url="http://pathological.sourceforge.net/"
@@ -12,26 +12,28 @@
 depends=('python-pygame')
 makedepends=('netpbm')
 install=pathological.install
+changelog=ChangeLog
 source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
         pathological.desktop pygame_181.patch encoding.patch)
 md5sums=('76a446080c0fed12baf39354d8e0ce4a' '0fbf64860efe3d287eb74681758c4f75'\
          'bcd59890efe29a9f8c83227656c31a3e' '06d9221d0d8adaf232a3766870a8bcc0')
-sha1sums=('70b1c9e12704c7fd3b301aa90bceee2e8373b7b9'
-          '9b57f854ce9621542d810a21c61325de343950d7'
-          '6f0aa0f74a87bd53771f2db6d3117981c4f070d3'
-          '7dbaa9ced7da0094280425a68b4c8db3382f230a')
+sha1sums=('70b1c9e12704c7fd3b301aa90bceee2e8373b7b9' '9b57f854ce9621542d810a21c61325de343950d7'\
+         '6f0aa0f74a87bd53771f2db6d3117981c4f070d3' '7dbaa9ced7da0094280425a68b4c8db3382f230a')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -p0 < ../encoding.patch || return 1
-  patch -p1 < ../pygame_181.patch || return 1
-  sed -i 's|X11R6/include/X11|share|' Makefile || return 1
-  sed -i 's|usr/games|usr/bin|' Makefile || return 1
+  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
+}
 
-  make || return 1
-  make DESTDIR="${pkgdir}" install || return 1
+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"



More information about the arch-commits mailing list