updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / iscan-v100 / PKGBUILD
blob75cf1fbe9a183bb9caac39a48b14c71676041240
1 # Contributor: Giovanni Mazzamati <gigi@teppisti.it>
2 pkgname=iscan-v100
3 arch=('i686')
4 pkgver=2.3.0
5 pkgrel=2
6 pkgdesc="A front end for Epson V100 scanners compiled from source"
7 url="http://www.avasys.jp/english/linux_e/dl_scan.html"
8 license="EPSON"
9 depends=('sane' 'rpmextract')
10 makedepends=()
11 provides=()
12 conflicts=()
13 replaces=()
14 backup=()
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')
23 build() {
24           cd $startdir/pkg/
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
30           make || return 1
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
38         }