Package Details: epson-inkjet-printer-201211w 1.0.0-10

Git Clone URL: https://aur.archlinux.org/epson-inkjet-printer-201211w.git (read-only, click to copy)
Package Base: epson-inkjet-printer-201211w
Description: Epson printer driver (WF-2010, WF-2510, WF-2520, WF-2530, WF-2540)
Upstream URL: http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
Licenses: LGPL, custom:Epson Licence Agreement
Submitter: Sheepy
Maintainer: None
Last Packager: Misery
Votes: 9
Popularity: 0.108669
First Submitted: 2012-11-06 21:14 (UTC)
Last Updated: 2021-02-26 14:51 (UTC)

Latest Comments

alarmfox commented on 2024-09-01 21:01 (UTC) (edited on 2024-09-01 21:02 (UTC) by alarmfox)

Hello, I am using this driver for my WF-2510 printer. I got this build error:

memory.c: In function 'eps_free_trace':
memory.c:73:9: error: implicit declaration of function 'debug_msg'; did you mean 'debuglog'? [-Wimplicit-function-declaration]
   73 |         debug_msg("%s:%d \t\t<<%s>>: Trace in \n", __FILE__, __LINE__, __FUNCTION__);

I tried to manually build the driver and got this error in CUPS dashboard:

File "/usr/lib/cups/filter/epson_inkjet_printer_filter" not available: No such file or directory

Taking inspiration from this package I modified the PKGBUILD and it's working for me now. I am leaving this here:

diff --git a/PKGBUILD b/PKGBUILD
index 6f50b4c..25eae84 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,9 @@
 # Contributor: Andre Klitzing <andre () incubo () de>

 pkgname=epson-inkjet-printer-201211w
-_pkgname_filter=epson-inkjet-printer-filter
-_suffix=1lsb3.2.src.rpm
-pkgver=1.0.0
+_pkgname_filter=epson-inkjet-printer-filter-1.0.2
+_suffix=1.src.rpm
+pkgver=1.0.1
 pkgrel=10
 pkgdesc="Epson printer driver (WF-2010, WF-2510, WF-2520, WF-2530, WF-2540)"
 arch=('i686' 'x86_64')
@@ -11,17 +11,21 @@ url="http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX"
 license=('LGPL' 'custom:Epson Licence Agreement')
 depends=('cups' 'ghostscript')
 #makedepends=('libtool' 'make' 'automake' 'autoconf')
-source=(http://download.ebz.epson.net/dsc/op/stable/SRPMS/${pkgname}-${pkgver}-${_suffix} fixbuild.patch)
+source=(https://download3.ebz.epson.net/dsc/f/03/00/15/69/60/2cad8d0db8d552bec202f055b0b9a9ef7a4609ba/${pkgname}-${pkgver}-${_suffix})
+
+sha256sums=('2be69ad9ccca5e97b4bfd5d1a26d7f3d5c191792e57ccadf7fa3df7ff7b5ef76')

 build() {
   cd "$srcdir" || exit
-  tar xzf $pkgname-$pkgver.tar.gz
-  FILTER_FILE=$(ls $_pkgname_filter*.tar.gz)
+  tar xzf ${pkgname}-${pkgver}.tar.gz
+  FILTER_FILE=$(ls ${_pkgname_filter}.tar.gz)
   tar xzf $FILTER_FILE
-
+  
   cd "${FILTER_FILE%.tar.gz}" || exit
-  patch -p1 -i "$srcdir"/fixbuild.patch
-  autoreconf -f -i
+  
+  libtoolize
+  autoreconf -vfi
+  autoupdate -f
   # if you have runtime problems: add "--enable-debug" and look into /tmp/epson-inkjet-printer-filter.txt
   ./configure LDFLAGS="$LDFLAGS -Wl,--no-as-needed" --prefix=/opt/$pkgname
   make
@@ -44,10 +48,10 @@ package() {
   install -m 644 ppds/* "$pkgdir/usr/share/cups/model/$pkgname"

   cd "$srcdir" || exit
-  FILTER_FILE=$(ls $_pkgname_filter*.tar.gz)
-  cd "${FILTER_FILE%.tar.gz}" || exit
-  install -d "$pkgdir/opt/$pkgname/cups/lib/filter/"
-  install -m 755 src/epson_inkjet_printer_filter "$pkgdir/opt/$pkgname/cups/lib/filter/epson_inkjet_printer_filter"
+  install -d "$pkgdir/opt/$pkgname/usr/lib/cups/filter/"
+
+  # I don't know why it doesnt work, keeping cp commands for now
+  # install -m 755 ${srcdir}/${_pkgname_filter} "$pkgdir/opt/$pkgname/usr/lib/cups/filter/epson_inkjet_printer_filter/"
+  cp -r ${srcdir}/${_pkgname_filter} "${pkgdir}/opt/${pkgname}/usr/lib/cups/filter/epson_inkjet_printer_filter"
+
 }
-sha256sums=('3fddf1f42d867182af991894c1f361d34b23f47f28af2490a987231111272170'
-            '85b0493972dcb92befd2bbf8d0ce705fc6280d54d83e985e9f7d0301bb01af50')

EDIT: typo pacakge -> package

alfredo.ardito commented on 2018-09-12 21:03 (UTC) (edited on 2018-09-12 21:04 (UTC) by alfredo.ardito)

Hello, I installed the package successfully and managed to print on different preset Paper Size
Instead when I set up a custom paper size in the EPSON_WF-2520_Series.ppd file, for example a postcard 170 x 200 mm, and try to print I get the filter error message.
I did many tests and found out that the driver does not accept custom papers which do not belong to the preset paper size.
It seems it has something to do with the driver which does not handle custom paper size. Is there a parameter which makes the driver accept custom paper size or is it a driver issue?
Has anyone setup a custom paper size?
These are the values set in the PPD file:

*PageSize Card/Card 170 x 200 mm: "<</PageSize[481.9 566.9]/ImagingBBox null>>setpagedevice"  
*PageRegion Card/Card 170 x 200 mm: "<</PageSize[481.9 566.9]/ImagingBBox null>>setpagedevice"  
*ImageableArea Card/Card 170 x 200 mm: "8.4 8.4 473.5 558.5"  
*PaperDimension Card/Card 170 x 200 mm: "481.9 566.9"  

Sheepy commented on 2012-11-06 21:19 (UTC)

By the way. Thanks for https://aur.archlinux.org/packages/epson-inkjet-printer-workforce-525/. I used his PKGBULD as a template.

Sheepy commented on 2012-11-06 21:17 (UTC)

The driver ist for WF-2010 Series, WF-2510 Series, WF-2520 Series, WF-2530 Series, WF-2540 Series. You have to download the epson-inkjet-printer-201211w-1.0.0-1lsb3.2.src.rpm manually from http://download.ebz.epson.net/dsc/search/01/search/searchModule Type: WF-2530. I dunno how to script it in the PKGBUILD