[arch-commits] Commit in iscan/repos (10 files)

Fabio Castelli muflone at archlinux.org
Sun Mar 29 20:53:22 UTC 2015


    Date: Sunday, March 29, 2015 @ 22:53:21
  Author: muflone
Revision: 130211

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

Added:
  iscan/repos/community-testing-i686/
  iscan/repos/community-testing-i686/PKGBUILD
    (from rev 130210, iscan/trunk/PKGBUILD)
  iscan/repos/community-testing-i686/epkowa.conf
    (from rev 130210, iscan/trunk/epkowa.conf)
  iscan/repos/community-testing-i686/iscan.install
    (from rev 130210, iscan/trunk/iscan.install)
  iscan/repos/community-testing-i686/libpng15.patch
    (from rev 130210, iscan/trunk/libpng15.patch)
  iscan/repos/community-testing-x86_64/
  iscan/repos/community-testing-x86_64/PKGBUILD
    (from rev 130210, iscan/trunk/PKGBUILD)
  iscan/repos/community-testing-x86_64/epkowa.conf
    (from rev 130210, iscan/trunk/epkowa.conf)
  iscan/repos/community-testing-x86_64/iscan.install
    (from rev 130210, iscan/trunk/iscan.install)
  iscan/repos/community-testing-x86_64/libpng15.patch
    (from rev 130210, iscan/trunk/libpng15.patch)

-----------------------------------------+
 community-testing-i686/PKGBUILD         |   67 ++++++++++++++++++++++++++++++
 community-testing-i686/epkowa.conf      |    1 
 community-testing-i686/iscan.install    |    5 ++
 community-testing-i686/libpng15.patch   |   48 +++++++++++++++++++++
 community-testing-x86_64/PKGBUILD       |   67 ++++++++++++++++++++++++++++++
 community-testing-x86_64/epkowa.conf    |    1 
 community-testing-x86_64/iscan.install  |    5 ++
 community-testing-x86_64/libpng15.patch |   48 +++++++++++++++++++++
 8 files changed, 242 insertions(+)

Copied: iscan/repos/community-testing-i686/PKGBUILD (from rev 130210, iscan/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2015-03-29 20:53:21 UTC (rev 130211)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: Frederic Bezies < fredbezies at gmail dot com>
+# Contributor: garion < garion @ mailoo.org >
+# Contributor: Alessio Sergi <asergi at archlinux dot us>
+
+pkgname='iscan'
+pkgver=2.30.1
+pkgrel=6
+pkgdesc="EPSON Image Scan! front-end for scanners and all-in-ones"
+arch=('i686' 'x86_64')
+url="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+license=('GPL2' 'custom:AVASYSPL')
+depends=('gtk2' 'sane')
+makedepends=('gettext' 'gimp')
+optdepends=('iscan-data: Image Scan! data files required for some devices'
+            'gimp-plugin-iscan: plug-in to scan directly from GIMP')
+source=("https://download3.ebz.epson.net/dsc/f/03/00/03/61/59/a3f8b8d60e8702a1c5bf3977d018cc2336e308a8/${pkgname}_${pkgver}-1.tar.gz"
+        "libpng15.patch"
+        "epkowa.conf")
+sha256sums=('79aa9a9f81a7146beb22a382bbaf840fbce61b1bdb82660e541946a471e48426'
+            '1a75b8df945a813a297dfd6e3dabae3bc8b51898f23af31640091e31b901f0ba'
+            '8e9e90fa50f1bd476b13766b19f100470c41dd253dc0605fbb1d0ac346a0beff')
+install="${pkgname}.install"
+backup=("etc/sane.d/epkowa.conf")
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  # patch for building iscan against libpng15 by giovanni
+  patch -Np0 -i "../libpng15.patch"
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  export LDFLAGS="${LDFLAGS} -ldl -lpng16"
+  ./configure --prefix=/usr \
+              --sbindir=/usr/bin \
+              --enable-dependency-reduction \
+              --enable-frontend \
+              --enable-jpeg \
+              --enable-tiff \
+              --enable-png \
+              --enable-gimp
+  make
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+
+  # install files
+  make DESTDIR="${pkgdir}" install
+
+  # install sane configuration files
+  install -m 755 -d "${pkgdir}/etc/sane.d"
+  install -m 644 -D "backend/epkowa.conf" "${pkgdir}/etc/sane.d/"
+  install -m 755 -d "${pkgdir}/etc/sane.d/dll.d"
+  install -m 644 "${srcdir}/epkowa.conf" "${pkgdir}/etc/sane.d/dll.d/"
+
+  # install desktop file
+  install -m 755 -d "${pkgdir}/usr/share/applications"
+  install -m 644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
+
+  # install license
+  install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m 644 "non-free/AVASYSPL.en.txt" "${pkgdir}/usr/share/licenses/${pkgname}/AVASYSPL"
+}
+

Copied: iscan/repos/community-testing-i686/epkowa.conf (from rev 130210, iscan/trunk/epkowa.conf)
===================================================================
--- community-testing-i686/epkowa.conf	                        (rev 0)
+++ community-testing-i686/epkowa.conf	2015-03-29 20:53:21 UTC (rev 130211)
@@ -0,0 +1 @@
+epkowa

Copied: iscan/repos/community-testing-i686/iscan.install (from rev 130210, iscan/trunk/iscan.install)
===================================================================
--- community-testing-i686/iscan.install	                        (rev 0)
+++ community-testing-i686/iscan.install	2015-03-29 20:53:21 UTC (rev 130211)
@@ -0,0 +1,5 @@
+post_install() {
+  echo "==> In order to use the scanner most probably you have to install a specific"
+  echo "==> firmware for your device. See: https://wiki.archlinux.org/index.php/Sane"
+}
+

Copied: iscan/repos/community-testing-i686/libpng15.patch (from rev 130210, iscan/trunk/libpng15.patch)
===================================================================
--- community-testing-i686/libpng15.patch	                        (rev 0)
+++ community-testing-i686/libpng15.patch	2015-03-29 20:53:21 UTC (rev 130211)
@@ -0,0 +1,48 @@
+--- lib/pngstream.cc	2011-12-01 02:30:53.000000000 +0100
++++ lib/pngstream.cc	2012-02-06 03:06:22.000000000 +0100
+@@ -83,7 +83,12 @@
+ #if HAVE_PNG_H
+     set_error_handler (_png, _info);
+ 
++/* when not interlacing (ie, only one pass), number of rows is image height:  _v_sz */
++#if PNG_LIBPNG_VER > 10499
++        if (!_footer && _v_sz == lib->get_current_row_number(_png))
++#else
+     if (_header && !_footer && _png->num_rows == _png->flush_rows)
++#endif
+       {
+         lib->write_end (_png, _info);
+         _footer = true;
+@@ -167,6 +172,9 @@
+     funcsym (write_row);
+     funcsym (write_flush);
+     funcsym (write_end);
++#if PNG_LIBPNG_VER > 10499
++    funcsym (get_current_row_number);
++#endif
+ 
+     if (lib->access_version_number
+         && lib->create_write_struct
+@@ -176,6 +184,9 @@
+         && lib->set_IHDR
+         && lib->set_pHYs
+         && lib->set_invert_mono
++#if PNG_LIBPNG_VER > 10499
++	&& lib->get_current_row_number
++#endif
+         && lib->write_info
+         && lib->write_row
+         && lib->write_flush
+--- lib/pngstream.hh	2011-12-01 02:30:53.000000000 +0100
++++ lib/pngstream.hh	2012-02-06 03:09:09.000000000 +0100
+@@ -108,6 +108,10 @@
+                png_structp);
+       fundecl (void, write_end,
+                png_structp, png_infop);
++#if PNG_LIBPNG_VER > 10499
++      fundecl (png_uint_32, get_current_row_number,
++               png_structp);
++#endif
+ #endif /* HAVE_PNG_H */
+     };
+     static png_lib_handle *lib;

Copied: iscan/repos/community-testing-x86_64/PKGBUILD (from rev 130210, iscan/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2015-03-29 20:53:21 UTC (rev 130211)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: Frederic Bezies < fredbezies at gmail dot com>
+# Contributor: garion < garion @ mailoo.org >
+# Contributor: Alessio Sergi <asergi at archlinux dot us>
+
+pkgname='iscan'
+pkgver=2.30.1
+pkgrel=6
+pkgdesc="EPSON Image Scan! front-end for scanners and all-in-ones"
+arch=('i686' 'x86_64')
+url="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
+license=('GPL2' 'custom:AVASYSPL')
+depends=('gtk2' 'sane')
+makedepends=('gettext' 'gimp')
+optdepends=('iscan-data: Image Scan! data files required for some devices'
+            'gimp-plugin-iscan: plug-in to scan directly from GIMP')
+source=("https://download3.ebz.epson.net/dsc/f/03/00/03/61/59/a3f8b8d60e8702a1c5bf3977d018cc2336e308a8/${pkgname}_${pkgver}-1.tar.gz"
+        "libpng15.patch"
+        "epkowa.conf")
+sha256sums=('79aa9a9f81a7146beb22a382bbaf840fbce61b1bdb82660e541946a471e48426'
+            '1a75b8df945a813a297dfd6e3dabae3bc8b51898f23af31640091e31b901f0ba'
+            '8e9e90fa50f1bd476b13766b19f100470c41dd253dc0605fbb1d0ac346a0beff')
+install="${pkgname}.install"
+backup=("etc/sane.d/epkowa.conf")
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  # patch for building iscan against libpng15 by giovanni
+  patch -Np0 -i "../libpng15.patch"
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  export LDFLAGS="${LDFLAGS} -ldl -lpng16"
+  ./configure --prefix=/usr \
+              --sbindir=/usr/bin \
+              --enable-dependency-reduction \
+              --enable-frontend \
+              --enable-jpeg \
+              --enable-tiff \
+              --enable-png \
+              --enable-gimp
+  make
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+
+  # install files
+  make DESTDIR="${pkgdir}" install
+
+  # install sane configuration files
+  install -m 755 -d "${pkgdir}/etc/sane.d"
+  install -m 644 -D "backend/epkowa.conf" "${pkgdir}/etc/sane.d/"
+  install -m 755 -d "${pkgdir}/etc/sane.d/dll.d"
+  install -m 644 "${srcdir}/epkowa.conf" "${pkgdir}/etc/sane.d/dll.d/"
+
+  # install desktop file
+  install -m 755 -d "${pkgdir}/usr/share/applications"
+  install -m 644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
+
+  # install license
+  install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m 644 "non-free/AVASYSPL.en.txt" "${pkgdir}/usr/share/licenses/${pkgname}/AVASYSPL"
+}
+

Copied: iscan/repos/community-testing-x86_64/epkowa.conf (from rev 130210, iscan/trunk/epkowa.conf)
===================================================================
--- community-testing-x86_64/epkowa.conf	                        (rev 0)
+++ community-testing-x86_64/epkowa.conf	2015-03-29 20:53:21 UTC (rev 130211)
@@ -0,0 +1 @@
+epkowa

Copied: iscan/repos/community-testing-x86_64/iscan.install (from rev 130210, iscan/trunk/iscan.install)
===================================================================
--- community-testing-x86_64/iscan.install	                        (rev 0)
+++ community-testing-x86_64/iscan.install	2015-03-29 20:53:21 UTC (rev 130211)
@@ -0,0 +1,5 @@
+post_install() {
+  echo "==> In order to use the scanner most probably you have to install a specific"
+  echo "==> firmware for your device. See: https://wiki.archlinux.org/index.php/Sane"
+}
+

Copied: iscan/repos/community-testing-x86_64/libpng15.patch (from rev 130210, iscan/trunk/libpng15.patch)
===================================================================
--- community-testing-x86_64/libpng15.patch	                        (rev 0)
+++ community-testing-x86_64/libpng15.patch	2015-03-29 20:53:21 UTC (rev 130211)
@@ -0,0 +1,48 @@
+--- lib/pngstream.cc	2011-12-01 02:30:53.000000000 +0100
++++ lib/pngstream.cc	2012-02-06 03:06:22.000000000 +0100
+@@ -83,7 +83,12 @@
+ #if HAVE_PNG_H
+     set_error_handler (_png, _info);
+ 
++/* when not interlacing (ie, only one pass), number of rows is image height:  _v_sz */
++#if PNG_LIBPNG_VER > 10499
++        if (!_footer && _v_sz == lib->get_current_row_number(_png))
++#else
+     if (_header && !_footer && _png->num_rows == _png->flush_rows)
++#endif
+       {
+         lib->write_end (_png, _info);
+         _footer = true;
+@@ -167,6 +172,9 @@
+     funcsym (write_row);
+     funcsym (write_flush);
+     funcsym (write_end);
++#if PNG_LIBPNG_VER > 10499
++    funcsym (get_current_row_number);
++#endif
+ 
+     if (lib->access_version_number
+         && lib->create_write_struct
+@@ -176,6 +184,9 @@
+         && lib->set_IHDR
+         && lib->set_pHYs
+         && lib->set_invert_mono
++#if PNG_LIBPNG_VER > 10499
++	&& lib->get_current_row_number
++#endif
+         && lib->write_info
+         && lib->write_row
+         && lib->write_flush
+--- lib/pngstream.hh	2011-12-01 02:30:53.000000000 +0100
++++ lib/pngstream.hh	2012-02-06 03:09:09.000000000 +0100
+@@ -108,6 +108,10 @@
+                png_structp);
+       fundecl (void, write_end,
+                png_structp, png_infop);
++#if PNG_LIBPNG_VER > 10499
++      fundecl (png_uint_32, get_current_row_number,
++               png_structp);
++#endif
+ #endif /* HAVE_PNG_H */
+     };
+     static png_lib_handle *lib;



More information about the arch-commits mailing list