Want more features on Pastebin? Sign Up, it's FREE!
Guest

canon-pixma-mx870-complete AUR PKGBUILD

By: F3lix85 on Mar 5th, 2012  |  syntax: None  |  size: 1.78 KB  |  views: 99  |  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:  Jeremy Sands <cto@jeremysands.com>
  2.  
  3. pkgname=canon-pixma-mx870-complete
  4. pkgver=3.30
  5. pkgrel=1
  6. pkgdesc="Complete stand alone driver set (printing and scanning) for Canon Pixma MX870"
  7. url="http://support-sg.canon-asia.com/contents/SG/EN/0100272302.html"
  8. arch=('i686' 'x86_64')
  9. license=('custom')
  10. if [ ${CARCH} = 'x86_64' ]; then
  11.   depends=('lib32-libcups' 'lib32-popt' 'lib32-libpng12' 'lib32-libusb-compat' 'lib32-libtiff4')
  12. elif [ ${CARCH} = 'i686' ]; then
  13.   depends=('libcups' 'popt' 'libpng12' 'libusb-compat' 'libtiff4')
  14. fi
  15. makedepends=('binutils')
  16. source=('http://gdlp01.c-wss.com/gds/3/0100002723/01/cnijfilter-mx870series-3.30-1-i386-deb.tar.gz'
  17.         'http://gdlp01.c-wss.com/gds/0/0100002730/01/scangearmp-mx870series-1.50-1-i386-deb.tar.gz')
  18. md5sums=('2aae1637d5f4c1bf10095fb5473f18c2'
  19.         'e77cec72a640d1b350c53e483f8792dc')
  20.  
  21. build(){
  22.   cd ${srcdir}/cnijfilter-mx870series-3.30-1-i386-deb/packages/
  23.   install cnijfilter-common_3.30-1_i386.deb ${pkgdir}
  24.   install cnijfilter-mx870series_3.30-1_i386.deb ${pkgdir}
  25.  
  26.   cd ${srcdir}/scangearmp-mx870series-1.50-1-i386-deb/packages
  27.   install scangearmp-common_1.50-1_i386.deb ${pkgdir}
  28.   install scangearmp-mx870series_1.50-1_i386.deb ${pkgdir}
  29.  
  30.   cd ${pkgdir}
  31.  
  32.   ar -x cnijfilter-common_3.30-1_i386.deb data.tar.gz
  33.   tar -xzf data.tar.gz
  34.   rm cnijfilter-common_3.30-1_i386.deb
  35.   rm data.tar.gz
  36.  
  37.   ar -x cnijfilter-mx870series_3.30-1_i386.deb data.tar.gz
  38.   tar -xvf data.tar.gz
  39.   rm cnijfilter-mx870series_3.30-1_i386.deb
  40.   rm data.tar.gz
  41.  
  42.   ar -x scangearmp-common_1.50-1_i386.deb data.tar.gz
  43.   tar -xvf data.tar.gz
  44.   rm scangearmp-common_1.50-1_i386.deb
  45.   rm data.tar.gz
  46.  
  47.   ar -x scangearmp-mx870series_1.50-1_i386.deb data.tar.gz
  48.   tar -xvf data.tar.gz
  49.   rm scangearmp-mx870series_1.50-1_i386.deb
  50.   rm data.tar.gz
  51. }
clone this paste RAW Paste Data