Date: Sunday, March 29, 2015 @ 22:35:07 Author: muflone Revision: 130209
New pkgbase iscan Added: iscan/ iscan/repos/ iscan/trunk/ iscan/trunk/PKGBUILD iscan/trunk/epkowa.conf iscan/trunk/iscan.install iscan/trunk/libpng15.patch ----------------+ PKGBUILD | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ epkowa.conf | 1 iscan.install | 5 +++ libpng15.patch | 48 +++++++++++++++++++++++++++++++++ 4 files changed, 132 insertions(+) Added: iscan/trunk/PKGBUILD =================================================================== --- iscan/trunk/PKGBUILD (rev 0) +++ iscan/trunk/PKGBUILD 2015-03-29 20:35:07 UTC (rev 130209) @@ -0,0 +1,78 @@ +# $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> +# Contributor: mutlu_inek <mutlu_i...@yahoo.de> + +pkgbase=iscan +pkgname=('iscan' 'gimp-plugin-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" +makedepends=('gettext' 'sane' 'gimp') +source=("https://download3.ebz.epson.net/dsc/f/03/00/03/61/59/a3f8b8d60e8702a1c5bf3977d018cc2336e308a8/${pkgbase}_${pkgver}-1.tar.gz" + "libpng15.patch" + "epkowa.conf") +sha256sums=('79aa9a9f81a7146beb22a382bbaf840fbce61b1bdb82660e541946a471e48426' + '1a75b8df945a813a297dfd6e3dabae3bc8b51898f23af31640091e31b901f0ba' + '8e9e90fa50f1bd476b13766b19f100470c41dd253dc0605fbb1d0ac346a0beff') + +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_iscan() { + depends=('gtk2' 'sane') + optdepends=('iscan-data: Image Scan! data files required for some devices' + 'gimp-plugin-iscan: plug-in to scan directly from GIMP') + install="${pkgname}.install" + backup=("etc/sane.d/epkowa.conf") + license=('GPL2' 'custom:AVASYSPL') + + 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" +} + +package_gimp-plugin-iscan() { + pkgdesc='GIMP plugin to launch Image Scan! and to scan an image directly from GIMP' + arch=('any') + depends=('iscan' 'gimp') + license=('GPL2') + install -m 755 -d "${pkgdir}/usr/lib/gimp/2.0/plug-ins" + ln -s "/usr/bin/iscan" "${pkgdir}/usr/lib/gimp/2.0/plug-ins/iscan" +} Property changes on: iscan/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: iscan/trunk/epkowa.conf =================================================================== --- iscan/trunk/epkowa.conf (rev 0) +++ iscan/trunk/epkowa.conf 2015-03-29 20:35:07 UTC (rev 130209) @@ -0,0 +1 @@ +epkowa Added: iscan/trunk/iscan.install =================================================================== --- iscan/trunk/iscan.install (rev 0) +++ iscan/trunk/iscan.install 2015-03-29 20:35:07 UTC (rev 130209) @@ -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" +} + Added: iscan/trunk/libpng15.patch =================================================================== --- iscan/trunk/libpng15.patch (rev 0) +++ iscan/trunk/libpng15.patch 2015-03-29 20:35:07 UTC (rev 130209) @@ -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;