blob: 489f5dc0033a06ffcce3a477e9e695288e6f1d0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: zoe <chp321 at gmail dot com>
pkgname=iscan-plugin-epson-v500-photo
_pkgname=iscan-plugin-gt-x770
pkgver=2.30.4
pkgrel=3
_pkgver=2.1.3
_pkgrel=1
pkgdesc="iscan plugin for Epson V500 Photo, also called GT-X770"
arch=('i686' 'x86_64')
url="http://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=FR&CN2=&DSCMI=42097&DSCCHK=309474db9a756a864fd62cf5a96b1b6e6a6e9d4c"
license=('custom:AVASYSPL')
depends=('iscan-data' 'iscan')
makedepends=('binutils' 'tar')
install=${pkgname}.install
md5sums_install=('be4086b1e50cb7e2a2e5d5c1bb5a8848')
source_i686=("https://download2.ebz.epson.net/iscan/plugin/gt-x770/deb/x86/iscan-gt-x770-bundle-${pkgver}.x86.deb.tar.gz")
md5sums_i686+=('04c3c32d3c5ced76dd52bbd77ef9f164')
source_x86_64=("https://download2.ebz.epson.net/iscan/plugin/gt-x770/deb/x64/iscan-gt-x770-bundle-${pkgver}.x64.deb.tar.gz")
md5sums_x86_64+=('2990ce5c70862b28415aa9132083cc6f')
prepare() {
if [ "$CARCH" = "i686" ] ; then
cd ${srcdir}/iscan-gt-x770-bundle-${pkgver}.x86.deb/plugins
ar vx ${_pkgname}_${_pkgver}-${_pkgrel}_i386.deb
tar -zxvf data.tar.gz
elif [ "$CARCH" = "x86_64" ] ; then
cd ${srcdir}/iscan-gt-x770-bundle-${pkgver}.x64.deb/plugins
ar vx ${_pkgname}_${_pkgver}-${_pkgrel}_amd64.deb
tar -zxvf data.tar.gz
fi
}
package() {
if [ "$CARCH" = "i686" ] ; then
install -d ${pkgdir}/usr
mv ${srcdir}/iscan-gt-x770-bundle-${pkgver}.x86.deb/plugins/usr/lib ${pkgdir}/usr
install -d ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${srcdir}/iscan-gt-x770-bundle-${pkgver}.x86.deb/plugins/usr/share/doc/${_pkgname}/{COPYING.EPSON.ja.txt.gz,COPYING.EPSON.en.txt.gz,copyright} \
${pkgdir}/usr/share/licenses/${pkgname}/
mkdir -p ${pkgdir}/usr/share/iscan/
install -m644 ${srcdir}/iscan-gt-x770-bundle-${pkgver}.x86.deb/plugins/usr/share/iscan/esfw7C.bin ${pkgdir}/usr/share/iscan/
elif [ "$CARCH" = "x86_64" ] ; then
install -d ${pkgdir}/usr
mv ${srcdir}/iscan-gt-x770-bundle-${pkgver}.x64.deb/plugins/usr/lib ${pkgdir}/usr
install -d ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${srcdir}/iscan-gt-x770-bundle-${pkgver}.x64.deb/plugins/usr/share/doc/${_pkgname}/{COPYING.EPSON.ja.txt.gz,COPYING.EPSON.en.txt.gz,copyright} \
${pkgdir}/usr/share/licenses/${pkgname}/
mkdir -p ${pkgdir}/usr/share/iscan/
install -m644 ${srcdir}/iscan-gt-x770-bundle-${pkgver}.x64.deb/plugins/usr/share/iscan/esfw7C.bin ${pkgdir}/usr/share/iscan/
fi
}
|