Date: Wednesday, May 28, 2014 @ 16:42:46
  Author: arodseth
Revision: 112015

archrelease: copy trunk to community-staging-x86_64, community-staging-i686

Added:
  mtpaint/repos/community-staging-i686/
  mtpaint/repos/community-staging-i686/PKGBUILD
    (from rev 112014, mtpaint/trunk/PKGBUILD)
  mtpaint/repos/community-staging-i686/giflib.patch
    (from rev 112014, mtpaint/trunk/giflib.patch)
  mtpaint/repos/community-staging-i686/mtpaint.install
    (from rev 112014, mtpaint/trunk/mtpaint.install)
  mtpaint/repos/community-staging-x86_64/
  mtpaint/repos/community-staging-x86_64/PKGBUILD
    (from rev 112014, mtpaint/trunk/PKGBUILD)
  mtpaint/repos/community-staging-x86_64/giflib.patch
    (from rev 112014, mtpaint/trunk/giflib.patch)
  mtpaint/repos/community-staging-x86_64/mtpaint.install
    (from rev 112014, mtpaint/trunk/mtpaint.install)

------------------------------------------+
 community-staging-i686/PKGBUILD          |   52 +++++++++++++++++++++++++++++
 community-staging-i686/giflib.patch      |   29 ++++++++++++++++
 community-staging-i686/mtpaint.install   |   13 +++++++
 community-staging-x86_64/PKGBUILD        |   52 +++++++++++++++++++++++++++++
 community-staging-x86_64/giflib.patch    |   29 ++++++++++++++++
 community-staging-x86_64/mtpaint.install |   13 +++++++
 6 files changed, 188 insertions(+)

Copied: mtpaint/repos/community-staging-i686/PKGBUILD (from rev 112014, 
mtpaint/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD                             (rev 0)
+++ community-staging-i686/PKGBUILD     2014-05-28 14:42:46 UTC (rev 112015)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Alexander Rødseth <[email protected]>
+# Contributor: Roman Kyrylych <[email protected]>
+# Contributor: yosh64 <yosh64.at.gmail.dot.com>
+
+pkgname=mtpaint
+pkgver=3.40
+pkgrel=14
+pkgdesc='Simple paint program for creating icons and pixel based artwork'
+arch=('x86_64' 'i686')
+url='http://mtpaint.sourceforge.net/'
+license=('GPL3')
+depends=('gtk2' 'giflib' 'libjpeg' 'openjpeg' 'desktop-file-utils' 'lcms2'
+         'libtiff' 'libpng' 'freetype2')
+makedepends=('gtk2' 'giflib' 'libjpeg' 'openjpeg' 'lcms2' 'libtiff' 'libpng'
+             'freetype2')
+install='mtpaint.install'
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2";
+        'giflib.patch')
+sha256sums=('ef321d2b404839c7b909bdf5283eb22a37fbdd35b4cc9e380ddc400573d7c890'
+            '38b3a50d7275e9dc3fe8c78e774b51fa55fc7bf11a490c13b4974455c7db830c')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  # GIFLIB patch for the file close function
+  patch -p0 -i "$srcdir/giflib.patch"
+
+  # Recommended by Mark Tyler himself
+  sed -i 's:$LIBS $LDFLAGS:$LDFLAGS $LIBS:' configure
+
+  # Needed for giflib 5. Not needed for mtpaint>3.40.
+  sed -i 's:EGifOpenFileName(file_name, FALSE):EGifOpenFileName(file_name, 
FALSE, NULL):' src/png.c
+  sed -i 's:DGifOpenFileName(file_name):DGifOpenFileName(file_name, NULL):g' 
src/png.c
+  sed -i 's:MakeMapObject(:GifMakeMapObject(:g' src/png.c
+  sed -i 's:FreeMapObject(:GifFreeMapObject(:g' src/png.c
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  export CFLAGS="-w `pkg-config libopenjpeg --cflags` $CFLAGS"
+  ./configure --prefix=/usr --mandir=/usr/share/man man intl GIF jpeg tiff 
cflags lcms2 jp2
+  make
+}
+
+package() {
+  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:
+

Copied: mtpaint/repos/community-staging-i686/giflib.patch (from rev 112014, 
mtpaint/trunk/giflib.patch)
===================================================================
--- community-staging-i686/giflib.patch                         (rev 0)
+++ community-staging-i686/giflib.patch 2014-05-28 14:42:46 UTC (rev 112015)
@@ -0,0 +1,29 @@
+--- src/png.c  2014-05-28 12:02:50.000000000 +0200
++++ src2/png.c 2014-05-28 12:02:43.569815883 +0200
+@@ -1608,7 +1608,7 @@
+       }
+       res = 1;
+ fail: mem_free_chanlist(w_set.img);
+-      DGifCloseFile(giffy);
++      DGifCloseFile(giffy, NULL);
+       return (res);
+ }
+ 
+@@ -1659,7 +1659,7 @@
+               }
+       }
+       res = 1;
+-fail: DGifCloseFile(giffy);
++fail: DGifCloseFile(giffy, NULL);
+       return (res);
+ }
+ 
+@@ -1725,7 +1725,7 @@
+       if (!settings->silent) progress_end();
+       msg = 0;
+ 
+-fail: EGifCloseFile(giffy);
++fail: EGifCloseFile(giffy, NULL);
+ #ifndef WIN32
+       /* giflib creates files with 0600 permissions, which is nasty - WJ */
+       mode = umask(0022);

Copied: mtpaint/repos/community-staging-i686/mtpaint.install (from rev 112014, 
mtpaint/trunk/mtpaint.install)
===================================================================
--- community-staging-i686/mtpaint.install                              (rev 0)
+++ community-staging-i686/mtpaint.install      2014-05-28 14:42:46 UTC (rev 
112015)
@@ -0,0 +1,13 @@
+post_upgrade() {
+  update-desktop-database -q
+}
+
+post_install() {
+  post_upgrade
+}
+
+post_remove() {
+  post_upgrade
+}
+
+# vim:set ts=2 sw=2 et:

Copied: mtpaint/repos/community-staging-x86_64/PKGBUILD (from rev 112014, 
mtpaint/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2014-05-28 14:42:46 UTC (rev 112015)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Alexander Rødseth <[email protected]>
+# Contributor: Roman Kyrylych <[email protected]>
+# Contributor: yosh64 <yosh64.at.gmail.dot.com>
+
+pkgname=mtpaint
+pkgver=3.40
+pkgrel=14
+pkgdesc='Simple paint program for creating icons and pixel based artwork'
+arch=('x86_64' 'i686')
+url='http://mtpaint.sourceforge.net/'
+license=('GPL3')
+depends=('gtk2' 'giflib' 'libjpeg' 'openjpeg' 'desktop-file-utils' 'lcms2'
+         'libtiff' 'libpng' 'freetype2')
+makedepends=('gtk2' 'giflib' 'libjpeg' 'openjpeg' 'lcms2' 'libtiff' 'libpng'
+             'freetype2')
+install='mtpaint.install'
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2";
+        'giflib.patch')
+sha256sums=('ef321d2b404839c7b909bdf5283eb22a37fbdd35b4cc9e380ddc400573d7c890'
+            '38b3a50d7275e9dc3fe8c78e774b51fa55fc7bf11a490c13b4974455c7db830c')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  # GIFLIB patch for the file close function
+  patch -p0 -i "$srcdir/giflib.patch"
+
+  # Recommended by Mark Tyler himself
+  sed -i 's:$LIBS $LDFLAGS:$LDFLAGS $LIBS:' configure
+
+  # Needed for giflib 5. Not needed for mtpaint>3.40.
+  sed -i 's:EGifOpenFileName(file_name, FALSE):EGifOpenFileName(file_name, 
FALSE, NULL):' src/png.c
+  sed -i 's:DGifOpenFileName(file_name):DGifOpenFileName(file_name, NULL):g' 
src/png.c
+  sed -i 's:MakeMapObject(:GifMakeMapObject(:g' src/png.c
+  sed -i 's:FreeMapObject(:GifFreeMapObject(:g' src/png.c
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  export CFLAGS="-w `pkg-config libopenjpeg --cflags` $CFLAGS"
+  ./configure --prefix=/usr --mandir=/usr/share/man man intl GIF jpeg tiff 
cflags lcms2 jp2
+  make
+}
+
+package() {
+  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:
+

Copied: mtpaint/repos/community-staging-x86_64/giflib.patch (from rev 112014, 
mtpaint/trunk/giflib.patch)
===================================================================
--- community-staging-x86_64/giflib.patch                               (rev 0)
+++ community-staging-x86_64/giflib.patch       2014-05-28 14:42:46 UTC (rev 
112015)
@@ -0,0 +1,29 @@
+--- src/png.c  2014-05-28 12:02:50.000000000 +0200
++++ src2/png.c 2014-05-28 12:02:43.569815883 +0200
+@@ -1608,7 +1608,7 @@
+       }
+       res = 1;
+ fail: mem_free_chanlist(w_set.img);
+-      DGifCloseFile(giffy);
++      DGifCloseFile(giffy, NULL);
+       return (res);
+ }
+ 
+@@ -1659,7 +1659,7 @@
+               }
+       }
+       res = 1;
+-fail: DGifCloseFile(giffy);
++fail: DGifCloseFile(giffy, NULL);
+       return (res);
+ }
+ 
+@@ -1725,7 +1725,7 @@
+       if (!settings->silent) progress_end();
+       msg = 0;
+ 
+-fail: EGifCloseFile(giffy);
++fail: EGifCloseFile(giffy, NULL);
+ #ifndef WIN32
+       /* giflib creates files with 0600 permissions, which is nasty - WJ */
+       mode = umask(0022);

Copied: mtpaint/repos/community-staging-x86_64/mtpaint.install (from rev 
112014, mtpaint/trunk/mtpaint.install)
===================================================================
--- community-staging-x86_64/mtpaint.install                            (rev 0)
+++ community-staging-x86_64/mtpaint.install    2014-05-28 14:42:46 UTC (rev 
112015)
@@ -0,0 +1,13 @@
+post_upgrade() {
+  update-desktop-database -q
+}
+
+post_install() {
+  post_upgrade
+}
+
+post_remove() {
+  post_upgrade
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to