1 # Contributor: Ian Heafer <archlinux at studio oneword turnip dot net>
2 # Contributor: Gianni Vialetto <g dot vialetto at gmail dot com>
3 # Contributor: Brian Miller :
4 # Contributor: Tom Kuther <gimpel@sonnenkinder.org>
5 # Contributor: Andrew Kotsyuba <avallach2000@gmail.com>
7 pkgname=iscan-plugin-gt-x720
8 _pkgintname=esci-interpreter-gt-f720
10 _pkgver=0.1.1-2 # workaround for hyphen in package version
12 pkgdesc="iscan plugin for Epson Perfection V30 scanner."
13 arch=('i686' 'x86_64')
14 url="http://avasys.jp/eng/linux_driver/"
15 license=('custom:AVASYSPL')
17 install="${pkgname}.install"
18 if [[ ${CARCH} = 'x86_64' ]]; then
19 source=("http://linux.avasys.jp/drivers/iscan-plugins/${_pkgintname}/${pkgver}/${_pkgintname}_${_pkgver}_amd64.deb")
20 md5sums=('b1450f60f089b3fa051fa0f12967ef17')
22 source=("http://linux.avasys.jp/drivers/iscan-plugins/${_pkgintname}/${pkgver}/${_pkgintname}_${_pkgver}_i386.deb")
23 md5sums=('c91f57f882583c0e0c5eb0c8f77389fc')
30 if [[ ${CARCH} = 'x86_64' ]]
32 bsdtar -xf ${_pkgintname}_${_pkgver}_amd64.deb data.tar.gz
34 bsdtar -xf ${_pkgintname}_${_pkgver}_i386.deb data.tar.gz
37 bsdtar -xf data.tar.gz
40 gzip -fd "${srcdir}/usr/share/doc/${_pkgintname}/NEWS.gz"
45 mkdir -p ${pkgdir}/usr/lib/
46 mkdir -p ${pkgdir}/usr/share/esci/
47 mkdir -p ${pkgdir}/usr/share/doc/${pkgname}/
48 mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/
50 cp -R usr/lib/* ${pkgdir}/usr/lib/
51 cp -R usr/share/esci/* ${pkgdir}/usr/share/esci/
53 install -Dm644 usr/share/doc/${_pkgintname}/{NEWS,README} ${pkgdir}/usr/share/doc/${pkgname}/
54 install -Dm644 usr/share/doc/${_pkgintname}/AVASYSPL.en.txt ${pkgdir}/usr/share/licenses/${pkgname}/AVASYSPL