updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / iscan-plugin-gt-x720 / PKGBUILD
blob1ee6a8d62fc896ed5b2929a11d758d2e7bf77b0f
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
9 pkgver=0.1.1
10 _pkgver=0.1.1-2 # workaround for hyphen in package version
11 pkgrel=2
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')
16 depends=('iscan')
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')
21 else
22     source=("http://linux.avasys.jp/drivers/iscan-plugins/${_pkgintname}/${pkgver}/${_pkgintname}_${_pkgver}_i386.deb")
23     md5sums=('c91f57f882583c0e0c5eb0c8f77389fc')
27 build() {
28     cd $srcdir
30     if [[ ${CARCH} = 'x86_64' ]]
31     then
32         bsdtar -xf ${_pkgintname}_${_pkgver}_amd64.deb data.tar.gz
33     else
34         bsdtar -xf ${_pkgintname}_${_pkgver}_i386.deb data.tar.gz
35     fi
37     bsdtar -xf data.tar.gz
38     rm -f data.tar.gz
40     gzip -fd "${srcdir}/usr/share/doc/${_pkgintname}/NEWS.gz"
44 package() {
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