1 # Contributor: Giovanni Mazzamati <gigi@teppisti.it>
6 pkgdesc="A front end for Epson V100 scanners compiled from source"
7 url="http://www.avasys.jp/english/linux_e/dl_scan.html"
9 depends=('sane' 'rpmextract')
15 install="iscan.INSTALL"
16 source=("http://lx1.avasys.jp/iscan/$pkgver/iscan-$pkgver-1.c2.tar.gz"
17 "http://lx1.avasys.jp/iscan/$pkgver/iscan-plugin-gt-s600-2.0.0-1.c2.i386.rpm")
18 md5sums=('d0304933c3e43f33d044fb55bae06bf0'
19 'bda9d1dfe5c9524084b01e46a7a9f5e3')
25 rpmextract.sh $startdir/src/iscan-plugin-gt-s600-2.0.0-1.c2.i386.rpm
26 chown -R root.root $startdir/pkg/usr
27 cd $startdir/src/iscan-$pkgver
28 ./configure --prefix=/usr
29 sed "s/static double similarity/double similarity/" -i ./frontend/pisa_tool.h
31 make DESTDIR=$startdir/pkg install
32 mkdir -p $startdir/pkg/etc/sane.d
33 mkdir -p $startdir/pkg/etc/hotplug/usb
34 cp $startdir/src/iscan-$pkgver/backend/epkowa.conf $startdir/pkg/etc/sane.d/
35 cp -r $startdir/src/iscan-$pkgver/utils/hotplug/* $startdir/pkg/etc/hotplug/usb/
36 perl -p -i.bak -e 's/scsi EPSON\n/#scsi EPSON\n/g' $startdir/pkg/etc/sane.d/epkowa.conf
37 chown -R root.root $startdir/pkg/etc