[arch-commits] Commit in mtpaint/repos/community-x86_64 (3 files)

Alexander Rødseth arodseth at archlinux.org
Sat Nov 2 11:51:06 UTC 2019


    Date: Saturday, November 2, 2019 @ 11:51:06
  Author: arodseth
Revision: 522156

archrelease: copy trunk to community-x86_64

Added:
  mtpaint/repos/community-x86_64/PKGBUILD
    (from rev 522155, mtpaint/trunk/PKGBUILD)
Deleted:
  mtpaint/repos/community-x86_64/PKGBUILD
  mtpaint/repos/community-x86_64/giflib.patch

--------------+
 PKGBUILD     |   80 ++++++++++++++++++++++-----------------------------------
 giflib.patch |   29 --------------------
 2 files changed, 32 insertions(+), 77 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-02 11:50:59 UTC (rev 522155)
+++ PKGBUILD	2019-11-02 11:51:06 UTC (rev 522156)
@@ -1,48 +0,0 @@
-# $Id$
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
-# Contributor: Roman Kyrylych <roman at archlinux.org>
-# Contributor: yosh64 <yosh64.at.gmail.dot.com>
-
-pkgname=mtpaint
-pkgver=3.40
-pkgrel=17
-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' 'openjpeg' 'lcms2')
-optdepends=('gifsicle: for exporting GIF files from mtPaint')
-source=("https://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:ts=2 sw=2 et:

Copied: mtpaint/repos/community-x86_64/PKGBUILD (from rev 522155, mtpaint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-02 11:51:06 UTC (rev 522156)
@@ -0,0 +1,32 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Roman Kyrylych <roman at archlinux.org>
+# Contributor: yosh64 <yosh64 at gmail.com>
+
+pkgname=mtpaint
+pkgver=3.49.19
+pkgrel=1
+pkgdesc='Simple paint program for creating icons and pixel based artwork'
+arch=(x86_64)
+url='https://github.com/wjaguar/mtPaint'
+license=(GPL3)
+makedepends=(git)
+depends=(gtk2 giflib openjpeg lcms2)
+optdepends=('gifsicle: for exporting GIF files from mtPaint')
+source=("git+$url#commit=a9e445ef0167631363fe954bd3ea7aec7853ca1a")
+sha256sums=('SKIP')
+
+build() {
+  cd mtPaint
+
+  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 mtPaint DESTDIR="$pkgdir" install
+}
+
+# getver: raw.githubusercontent.com/wjaguar/mtPaint/master/README
+# vim:ts=2 sw=2 et:

Deleted: giflib.patch
===================================================================
--- giflib.patch	2019-11-02 11:50:59 UTC (rev 522155)
+++ giflib.patch	2019-11-02 11:51:06 UTC (rev 522156)
@@ -1,29 +0,0 @@
---- 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);



More information about the arch-commits mailing list