You are not logged in.

#1 2016-01-07 07:08:44

akgrant0710
Member
Registered: 2015-12-30
Posts: 25

Epson V370 Scanner driver iscan-plugin-perfection-v370-1.0.0-1

I've created a package to install the driver for the Epson Perfection
V370 scanner.  It should also work for the V37.

My initial google search for an Arch V370 driver package suggested that
there used to be one, but it seems to have been removed.  Hopefully
creating a new one now is OK.

While I've tested the package on my machine, this is after manually
installing and uninstalling the drivers, so I can't be as confident as
if it was a clean install (I don't have a spare machine at the moment,
and don't want to reinstall the OS from scratch).

I'm also a new Arch user and this is my first attempt at writing a
package.

I guess the chances of somone else wanting to install Epson V370
drivers at the moment seems fairly low, but if there is, please find
the package at:

(deleted)

If anyone else is willing to do a sight review and provide feedback I'd
appreciate it.

EDITED 2 Feb 2016: I've removed the dropbox link as the package
is now available through the AUR (link in follow-up post).

Thanks,
Alistair

Last edited by akgrant0710 (2016-02-02 19:17:20)

Offline

#2 2016-01-07 13:14:15

Muflone
Package Maintainer (PM)
From: Italy
Registered: 2013-10-08
Posts: 106
Website

Re: Epson V370 Scanner driver iscan-plugin-perfection-v370-1.0.0-1

I wished to maintain the Epson packages in the AUR (I'm also the actual maintainer of the iscan package).
So could you please share your experience with your package?

Offline

#3 2016-01-07 13:49:40

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Epson V370 Scanner driver iscan-plugin-perfection-v370-1.0.0-1

akgrant0710 wrote:

My initial google search for an Arch V370 driver package suggested that
there used to be one, but it seems to have been removed.  Hopefully
creating a new one now is OK.

Old package can be found here although it does have issues.
http://pkgbuild.com/git/aur-mirror.git/ … ction-v370

I guess the chances of somone else wanting to install Epson V370
drivers at the moment seems fairly low, but if there is, please find
the package at:

https://www.dropbox.com/s/r4izot6wpjbit … ar.gz?dl=0

No one is going to install an unofficial package that you've built without first seeing the PKGBUILD.
Share the PKGBUILD if you want feedback and then upload it to the AUR if you want it to be of use to anyone else.

Last edited by Slithery (2016-01-07 14:15:37)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2016-01-07 20:37:36

akgrant0710
Member
Registered: 2015-12-30
Posts: 25

Re: Epson V370 Scanner driver iscan-plugin-perfection-v370-1.0.0-1

slithery wrote:
akgrant0710 wrote:

My initial google search for an Arch V370 driver package suggested that
there used to be one, but it seems to have been removed.  Hopefully
creating a new one now is OK.

Old package can be found here although it does have issues.
http://pkgbuild.com/git/aur-mirror.git/ … ction-v370

Thanks.  It does look strange, the drivers aren't downloaded from Epson.

slithery wrote:
akgrant0710 wrote:

I guess the chances of somone else wanting to install Epson V370
drivers at the moment seems fairly low, but if there is, please find
the package at:

https://www.dropbox.com/s/r4izot6wpjbit … ar.gz?dl=0

No one is going to install an unofficial package that you've built without first seeing the PKGBUILD.
Share the PKGBUILD if you want feedback and then upload it to the AUR if you want it to be of use to anyone else.

The archive that I put on dropbox is the PKGBUILD and install file, not the built package.

Perhaps it would be easier just to post here...

PKGBUILD:

# Maintainer: Alistair Grant <akgrant0710 at gmail dot com>
# Copied from iscan-plugin-gt-f720:
# _Maintainer Muflone http://www.muflone.com/contacts/english/
# _Contributor Ian Heafer <archlinux at studio oneword turnip dot net>
# _Contributor Gianni Vialetto <g dot vialetto at gmail dot com>
# _Contributor Brian Miller :
# _Contributor Tom Kuther <gimpel@sonnenkinder.org>
# _Contributor Andrew Kotsyuba <avallach2000@gmail.com>
#
# Note: This will probably also work for the V37, but is untested.

pkgname=iscan-plugin-perfection-v370
pkgver=1.0.0
pkgrel=1
pkgdesc="EPSON Image Scan! plugin for Epson Perfection V370 scanner"
arch=('i686' 'x86_64')
url="http://support.epson.net/linux/en/iscan.php?model=perfection-v370&version=1.0.0"
license=('custom:AVASYSPL')
depends=('iscan' 'iscan-data')
source_i686=("https://download2.ebz.epson.net/iscan/plugin/perfection-v370/deb/x86/iscan-perfection-v370-bundle-${pkgver}.x86.deb.tar.gz")
source_x86_64=("https://download2.ebz.epson.net/iscan/plugin/perfection-v370/deb/x64/iscan-perfection-v370-bundle-${pkgver}.x64.deb.tar.gz")
sha256sums_i686=('502b03830c28e13c2a653250c61c522b4bef236a460d2ada354537aa97abaa24')
sha256sums_x86_64=('72e76642798abab25b935413b105f36c88474041e486d3216c861f584ced6f76')
install="${pkgname}.install"

if [ "$CARCH" = 'x86_64' ]
then
  _filearch=x64
  _debarch=amd64
else
  _filearch=x86
  _debarch=i386
fi

_bundle_name=iscan-perfection-v370-bundle-${pkgver}.${_filearch}.deb

build() {
  cd "${srcdir}/${_bundle_name}/core"
  ar xf iscan_2.30.1-1~usb0.1.ltdl7_amd64.deb
  bsdtar -xf data.tar.gz

  cd "${srcdir}/${_bundle_name}/plugins"
  bsdtar -xf iscan-plugin-perfection-v370_1.0.0-2_${_debarch}.deb
  bsdtar -xf data.tar.gz
  gzip -fkd "usr/share/doc/iscan-plugin-perfection-v370/NEWS.gz"
}

package() {
  cd "${srcdir}/${_bundle_name}/plugins"
  install -m 755 -d "${pkgdir}/usr/share/iscan"
  install -m 644 -t "${pkgdir}/usr/share/iscan" "usr/share/iscan/esfwdd.bin"
  install -m 755 -d "${pkgdir}/usr/share/iscan-data/device"
  install -m 644 -t "${pkgdir}/usr/share/iscan-data/device" "usr/share/iscan-data/device/47542d46373430.xml"
  install -m 644 -t "${pkgdir}/usr/share/iscan-data/device" "usr/share/iscan-data/device/47542d53363430.xml"

  install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m 644 "usr/share/doc/${pkgname}/AVASYSPL.en.txt" "${pkgdir}/usr/share/licenses/${pkgname}/AVASYSPL"

  install -m 755 -d "${pkgdir}/usr/share/doc/${pkgname}"
  install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "usr/share/doc/${pkgname}"/{NEWS,README}

  install -m 755 -d "${pkgdir}/usr/lib/iscan"
  install -m 644 -t "${pkgdir}/usr/lib/iscan" "usr/lib/iscan/libiscan-plugin-perfection-v370.so.0.0.0"
  cd "${pkgdir}/usr/lib/iscan"
  ln -s libiscan-plugin-perfection-v370.so.0.0.0 libiscan-plugin-perfection-v370.so
  ln -s libiscan-plugin-perfection-v370.so.0.0.0 libiscan-plugin-perfection-v370.so.0
}

iscan-plugin-perfection-v370.install:

post_install() {
  echo "Running iscan-registry to register V370 plugins and firmware with iscan"
  iscan-registry --add interpreter usb 0x04b8 0x014a \
    /usr/lib64/iscan/libiscan-plugin-perfection-v370 \
    /usr/share/iscan/esfwdd.bin 
}

pre_remove() {
  echo "Unregistering V370 plugins/firmware"
  iscan-registry --remove interpreter usb 0x04b8 0x014a \
    /usr/lib64/iscan/libiscan-plugin-perfection-v370 \
    /usr/share/iscan/esfwdd.bin 

Thanks,
Alistair

Offline

#5 2016-01-11 04:18:06

akgrant0710
Member
Registered: 2015-12-30
Posts: 25

Re: Epson V370 Scanner driver iscan-plugin-perfection-v370-1.0.0-1

It has been a few days since the last reply, and I don't expect this to be widely used (it seems unlikely that there are a large number of Arch users with Epson V370 scanners), so I've posted the package to:

https://aur.archlinux.org/packages/isca … tion-v370/

If anyone has any feedback or fixes I'm of course happy to incorporate them and update the package.

Offline

#6 2016-02-02 18:43:46

cherubel
Member
Registered: 2016-02-02
Posts: 1

Re: Epson V370 Scanner driver iscan-plugin-perfection-v370-1.0.0-1

I just bought a V370... Thank tou very much for the package smile

Offline

#7 2016-02-02 19:11:33

akgrant0710
Member
Registered: 2015-12-30
Posts: 25

Re: Epson V370 Scanner driver iscan-plugin-perfection-v370-1.0.0-1

cherubel wrote:

I just bought a V370... Thank tou very much for the package smile

You're welcome, I'm glad it has helped someone.


Muflone wrote:

I wished to maintain the Epson packages in the AUR (I'm also the actual maintainer of the iscan package).
So could you please share your experience with your package?

My apologies for not replying earlier - I've read this thread numerous
times, and somehow managed to miss your post every time.

Can you describe in a bit more detail what you would like?

I initially tried to copy the PKGBUILD for a different Epson scanner
(I've lost the reference), however it wasn't very useful.  I then found
your iscan-plugin-gt-f720 package.  I also had a working installation
on Ubuntu 15.10.  After installing your iscan and iscan-data packages,
and by diff'ing the working installation with my clean
Arch install and looking at your PKGBUILD I was able to piece together
the V370 PKGBUILD and associated install file.

I haven't touched it since the initial release since there weren't any
problems.

P.S.  I also used gWakeOnLan for a while - thanks for all the software
you have made available!

Offline

Board footer

Powered by FluxBB