updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / iscan-plugin-gt-x750 / PKGBUILD
blob1884266b8ecad26caf68e4f4c45250752864cb26
1 # Maintainer: Ilmari Repo <ilmari@gmail.com>
2 # Based on the PKGBUILD from http://aur.archlinux.org/packages.php?ID=40933
4 pkgname=iscan-plugin-gt-x750
5 pkgver=2.1.2_1
6 pkgrel=1
7 pkgdesc="iscan plugin for Epson Perfection 4490 / GT-X750"
8 arch=('i686' 'x86_64')
9 url="http://avasys.jp/eng/linux_driver/"
10 license=('custom')
11 depends=('iscan')
12 makedepends=('rpmextract')
13 install=gt-x750.install
15   _VERSION="2.1.2-1"
16 if [ "$CARCH" = "i686" ]; then
17   source=(http://linux.avasys.jp/drivers/iscan-plugins/iscan-plugin-gt-x750/2.1.2/${pkgname}-${_VERSION}.i386.rpm)
18   _ARCH=i386
19   md5sums=('e21039469368411d43ca9bfe4e96deb8')
20 elif [ "$CARCH" = "x86_64" ]; then
21   source=(http://linux.avasys.jp/drivers/iscan-plugins/iscan-plugin-gt-x750/2.1.2/${pkgname}-${_VERSION}.x86_64.rpm)
22   _ARCH=x86_64
23   md5sums=('62446ab303d4ac55f17e8495ad97b8a6')
26 build() {
27   cd ${startdir}
28   rpmextract.sh ${pkgname}-${_VERSION}.${_ARCH}.rpm
29   mv usr ${pkgdir}
30   if [ "$CARCH" = "x86_64" ]; then mv ${pkgdir}/usr/lib64 ${pkgdir}/usr/lib; fi
31   mkdir -p ${pkgdir}/usr/share/licenses/iscan
32   mv ${pkgdir}/usr/share/doc/${pkgname}-${_VERSION%-*}/AVASYSPL.en.txt ${pkgdir}/usr/share/licenses/iscan/
33   rm -rf ${pkgdir}/usr/share/doc