Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 5th, 2011  |  syntax: Bash  |  size: 1.04 KB  |  views: 79  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: D. Can Celasun <dcelasun[at]gmail[dot]com>
  2. # Contributor: Ian Heafer <archlinux at studio oneword turnip dot net>
  3. pkgname=iscan-plugin-gt-x770
  4. pkgver=2.1.2
  5. _realpkgver=2.1.2-1
  6. pkgrel=1
  7. pkgdesc="iscan plugin for Epson Colorio GT-X770/Perfection Photo V500 scanners."
  8. arch=('i686' 'x86_64')
  9. url="http://www.avasys.jp/english/linux_e/"
  10. license=('custom')
  11. depends=('iscan')
  12. install=gt-x770.install
  13.  
  14. [ "$CARCH" = x86_64   ] &&
  15. source=(http://linux.avasys.jp/drivers/iscan-plugins/iscan-plugin-gt-x770/$pkgver/$pkgname-${_realpkgver}.x86_64.rpm)
  16. [ "$CARCH" = i686   ] &&
  17. source=(http://linux.avasys.jp/drivers/iscan-plugins/iscan-plugin-gt-x770/$pkgver/$pkgname-${_realpkgver}.i386.rpm)
  18.  
  19. [ "$CARCH" = x86_64   ] && md5sums=('535cd0f66a17da65fbe3f4e43891785c')
  20. [ "$CARCH" = i686   ] && md5sums=('c1653cac46ddc1c927953ffca588bf01')
  21.  
  22. package() {
  23.   cd "$srcdir"
  24.   mv usr "$pkgdir"
  25.   mkdir "$pkgdir"/usr/share/licenses
  26.   mv "$pkgdir"/usr/share/doc/$pkgname-$pkgver "$pkgdir"/usr/share/licenses/
  27.   rm -rf "$pkgdir"/usr/share/doc
  28. }