summaryrefslogtreecommitdiff
path: root/community/xplanet
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-06-17 03:27:11 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-06-17 03:27:11 +0000
commit6459b84bf754eda5323f40eb7af76dde65b63251 (patch)
tree81947a270848520d4cf2f9d1c5ce91ced54fcdff /community/xplanet
parent942111e62628e9a5c4729563215b1cfb8911735e (diff)
Tue Jun 17 03:23:47 UTC 2014
Diffstat (limited to 'community/xplanet')
-rw-r--r--community/xplanet/PKGBUILD6
-rw-r--r--community/xplanet/giflib6.patch19
2 files changed, 18 insertions, 7 deletions
diff --git a/community/xplanet/PKGBUILD b/community/xplanet/PKGBUILD
index 8da9880f9..7d996c430 100644
--- a/community/xplanet/PKGBUILD
+++ b/community/xplanet/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 101195 2013-11-19 11:02:23Z spupykin $
+# $Id: PKGBUILD 113170 2014-06-14 19:22:24Z andyrtr $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: dorphell <dorphell@archlinux.org>
# Committer: Judd Vinet <jvinet@zeroflux.org>
pkgname=xplanet
pkgver=1.3.0
-pkgrel=4
+pkgrel=5
pkgdesc="An Xearth wannabe"
arch=(i686 x86_64)
url="http://xplanet.sourceforge.net/"
@@ -14,7 +14,7 @@ depends=('pango' 'giflib' 'libtiff' 'libxss')
source=(http://downloads.sourceforge.net/project/xplanet/xplanet/$pkgver/xplanet-$pkgver.tar.gz
giflib6.patch)
md5sums=('41f7db2ccd1d8b4b989cacaf9adfe692'
- '74e1894304fe3b7caf0b3ddf3c471b0b')
+ '027342e9a912e8eaee3a913d6c710050')
prepare() {
cd $srcdir/$pkgname-$pkgver
diff --git a/community/xplanet/giflib6.patch b/community/xplanet/giflib6.patch
index aaf024198..653b9c8dc 100644
--- a/community/xplanet/giflib6.patch
+++ b/community/xplanet/giflib6.patch
@@ -1,6 +1,6 @@
-diff -wbBur xplanet-1.3.0/src/libimage/gif.c /home/sergej/tmp/BUILD/staging-i686/sergej/build/xplanet/src/xplanet-1.3.0/src/libimage/gif.c
+diff -wbBur xplanet-1.3.0/src/libimage/gif.c xplanet-1.3.0.my/src/libimage/gif.c
--- xplanet-1.3.0/src/libimage/gif.c 2006-03-26 01:50:51.000000000 +0300
-+++ /home/sergej/tmp/BUILD/staging-i686/sergej/build/xplanet/src/xplanet-1.3.0/src/libimage/gif.c 2013-07-30 18:21:17.412474692 +0400
++++ xplanet-1.3.0.my/src/libimage/gif.c 2014-05-29 18:59:14.830652716 +0400
@@ -20,7 +20,7 @@
#include <stdio.h>
@@ -59,6 +59,15 @@ diff -wbBur xplanet-1.3.0/src/libimage/gif.c /home/sergej/tmp/BUILD/staging-i686
return(0);
}
}
+@@ -154,7 +154,7 @@
+
+ free(buffer);
+
+- DGifCloseFile(infile);
++ DGifCloseFile(infile, NULL);
+ return(1);
+ }
+
@@ -178,7 +178,7 @@
return(0);
}
@@ -119,11 +128,13 @@ diff -wbBur xplanet-1.3.0/src/libimage/gif.c /home/sergej/tmp/BUILD/staging-i686
return(0);
}
ptr += width;
-@@ -233,7 +233,7 @@
+@@ -232,8 +232,8 @@
+
EGifSpew(outfile);
- if (EGifCloseFile(outfile) == GIF_ERROR)
+- if (EGifCloseFile(outfile) == GIF_ERROR)
- PrintGifError();
++ if (EGifCloseFile(outfile, NULL) == GIF_ERROR)
+ printf("%s\n", GifErrorString(GIF_ERROR));
free(buffer);