updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / iscan-plugin-network / PKGBUILD
blob3c981669920d148d72ee405ea9568508f6684b06
1 # Contributor: Gianni Vialetto <g dot vialetto at gmail dot com>
2 # Contributor: Brian Miller :
3 # Contributor: Tom Kuther <gimpel@sonnenkinder.org>
5 pkgname=iscan-plugin-network
6 _pkgintname=iscan-network-nt
7 pkgver=1.1.0
8 _pkgver=1.1.0-2 # workaround for hyphen in package version
9 pkgrel=3
10 pkgdesc="Plugin for using Epson scanners with ISCAN over network"
11 arch=('i686' 'x86_64')
12 url="http://avasys.jp/eng/linux_driver/"
13 license=('custom:AVASYSPL')
14 depends=(iscan)
15 makedepends=()
16 provides=()
17 conflicts=()
18 replaces=()
19 backup=()
20 install=iscan-plugin-network.install
21 if [[ ${CARCH} = 'x86_64' ]]; then
22     source=(http://linux.avasys.jp/drivers/scanner-plugins/${_pkgintname}/${pkgver}/${_pkgintname}_${_pkgver}_amd64.deb)
23     md5sums=('cd2adbc995715055c2fbad8059011e83')
24 else
25     source=(http://linux.avasys.jp/drivers/scanner-plugins/${_pkgintname}/${pkgver}/${_pkgintname}_${_pkgver}_i386.deb)
26     md5sums=('95293cf0c599f3878e7a8f418f48c3d7')
30 build() {
31     cd $srcdir
33     if [[ ${CARCH} = 'x86_64' ]]
34     then
35         bsdtar -xf ${_pkgintname}_${_pkgver}_amd64.deb data.tar.gz
36     else
37         bsdtar -xf ${_pkgintname}_${_pkgver}_i386.deb data.tar.gz
38     fi
40     bsdtar -xf data.tar.gz
41     rm -f data.tar.gz
43     mkdir -p $pkgdir/usr/lib/
44     mkdir -p $pkgdir/usr/share/licenses/${pkgname}/
46     cp -R usr/lib/* $pkgdir/usr/lib/
47     install -Dm644 usr/share/doc/${_pkgintname}/AVASYSPL.en.txt $pkgdir/usr/share/licenses/${pkgname}/AVASYSPL