updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / iscan-plugin-gt-f670 / PKGBUILD
blobef2d970c65df20db785be205491fcab024599fa5
1 # Maintainer: garion < garion @ mailoo.org >
3 pkgname=iscan-plugin-gt-f670
4 pkgver=2.1.2
5 pkgrel=1
6 pkgdesc="iscan plugin for Epson Perfection Photo V200 scanners and similar"
7 arch=('i686' 'x86_64')
8 url="http://avasys.jp/eng/linux_driver/"
9 license=('custom')
10 depends=('iscan')
11 makedepends=('rpmextract')
12 install=gt-f670.install
14 if [ "$CARCH" = "i686" ]; then
15   source=(http://linux.avasys.jp/drivers/iscan-plugins/$pkgname/$pkgver/$pkgname-$pkgver-1.i386.rpm)
16   _ARCH=i386
17   md5sums=('f53dec00730d3d28051edd1fb869de22')
18 elif [ "$CARCH" = "x86_64" ]; then
19   source=(http://linux.avasys.jp/drivers/iscan-plugins/$pkgname/$pkgver/$pkgname-$pkgver-1.x86_64.rpm)
20   _ARCH=x86_64
21   md5sums=('8bb27b1f56823d1ec896d4ae7e3ba8f6')
24 build(){
25   cd $srcdir
26   rpmextract.sh $pkgname-$pkgver-1.$_ARCH.rpm
29 package(){
30   if [ "$CARCH" = "i686" ]; then
31     _lib='lib'
32   elif [ "$CARCH" = "x86_64" ]; then
33     _lib='lib64'
34   fi
35   install -d $pkgdir/usr/lib/iscan
36   install -m755 $srcdir/usr/$_lib/iscan/libesint7A.so.2.0.1 $pkgdir/usr/lib/iscan/
37   install -m755 $srcdir/usr/$_lib/iscan/libesint7A.so.2 $pkgdir/usr/lib/iscan/
38   install -m755 $srcdir/usr/$_lib/iscan/libesint7A.so $pkgdir/usr/lib/iscan/
39   install -d $pkgdir/usr/share/iscan
40   install -m644 $srcdir/usr/share/iscan/esfw7A.bin $pkgdir/usr/share/iscan