Date: Tuesday, January 19, 2010 @ 21:21:16
  Author: eric
Revision: 64370

upgpkg: xine-ui 0.99.5-6
    Rebuilt for libpng 1.4 and libjpeg 8, Added install scriptlet to update 
icon cache

Added:
  xine-ui/trunk/libpng14.patch
  xine-ui/trunk/xine-ui.install
Modified:
  xine-ui/trunk/ChangeLog
  xine-ui/trunk/PKGBUILD

-----------------+
 ChangeLog       |    6 ++++++
 PKGBUILD        |   13 +++++++------
 libpng14.patch  |   12 ++++++++++++
 xine-ui.install |   11 +++++++++++
 4 files changed, 36 insertions(+), 6 deletions(-)

Modified: ChangeLog
===================================================================
--- ChangeLog   2010-01-19 23:37:59 UTC (rev 64369)
+++ ChangeLog   2010-01-20 02:21:16 UTC (rev 64370)
@@ -1,3 +1,9 @@
+2010-01-19  Eric Belanger  <[email protected]>
+
+       * xine-ui 0.99.5-6
+       * Rebuilt for libpng 1.4 and libjpeg 8
+       * Added install scriptlet to update icon cache
+
 2009-06-18  Eric Belanger  <[email protected]>
 
        * xine-ui 0.99.5-5

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2010-01-19 23:37:59 UTC (rev 64369)
+++ PKGBUILD    2010-01-20 02:21:16 UTC (rev 64370)
@@ -3,22 +3,23 @@
 
 pkgname=xine-ui
 pkgver=0.99.5
-pkgrel=5
+pkgrel=6
 pkgdesc="A free video player for Unix"
 arch=('i686' 'x86_64')
 license=('GPL')
 url="http://www.xine-project.org";
-depends=('xine-lib' 'curl>=7.16.2' 'libxtst' 'libxinerama' 'libxv' 'libpng' 
'libxft' 'libsm' 'libxxf86vm' 'ncurses>=5.6-7' 'readline>=6.0.00')
+depends=('xine-lib' 'curl' 'libxtst' 'libxinerama' 'libxv' 'libpng' 'libxft' 
'libsm' 'libxxf86vm' 'ncurses' 'readline' 'xdg-utils')
 makedepends=('lirc' 'libxt')
 optdepends=('lirc')
 options=('!emptydirs')
-source=(http://downloads.sourceforge.net/sourceforge/xine/${pkgname}-${pkgver}.tar.gz)
-md5sums=('e643cd1fcad4d98a5ae4eb877ce5087b')
-sha1sums=('4f452516319f31cda01d08ea2779f195933af0bb')
+install=xine-ui.install
+source=(http://downloads.sourceforge.net/sourceforge/xine/${pkgname}-${pkgver}.tar.gz
 libpng14.patch)
+md5sums=('e643cd1fcad4d98a5ae4eb877ce5087b' 'b533aa5a5847ecabad28cc15879e1966')
+sha1sums=('4f452516319f31cda01d08ea2779f195933af0bb' 
'67db0d243e4fe482456db5efe174eaf4c6c50de6')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
-  
+  patch -p1 < ../libpng14.patch || return 1
   #add missing constant (defined in xine.h from xine-lib cvs)
   echo '#define XINE_MSG_AUDIO_OUT_UNAVAILABLE 11' >> src/xitk/common.h || 
return 1
   ./configure --prefix=/usr --mandir=/usr/share/man \

Added: libpng14.patch
===================================================================
--- libpng14.patch                              (rev 0)
+++ libpng14.patch      2010-01-20 02:21:16 UTC (rev 64370)
@@ -0,0 +1,12 @@
+diff -Naur xine-ui-0.99.5-orig/src/xitk/Imlib-light/load.c 
xine-ui-0.99.5/src/xitk/Imlib-light/load.c
+--- xine-ui-0.99.5-orig/src/xitk/Imlib-light/load.c    2010-01-19 
02:46:21.000000000 -0500
++++ xine-ui-0.99.5/src/xitk/Imlib-light/load.c 2010-01-19 02:49:22.000000000 
-0500
+@@ -193,7 +193,7 @@
+     return 0;
+   fread(buf, 1, 8, f);
+   rewind(f);
+-  return (int)png_check_sig(buf, 8);
++  return (int)png_sig_cmp(buf, 0, 8)==0;
+ }
+ 
+ ImlibImage * Imlib_load_image(ImlibData * id, char *file) {

Added: xine-ui.install
===================================================================
--- xine-ui.install                             (rev 0)
+++ xine-ui.install     2010-01-20 02:21:16 UTC (rev 64370)
@@ -0,0 +1,11 @@
+post_install() {
+       xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+       post_install
+}
+
+post_remove() {
+       post_install
+}

Reply via email to