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

PKGBUILD

By: a guest on May 30th, 2013  |  syntax: C  |  size: 1.07 KB  |  views: 45  |  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. pkgname=cnijfilter-ip2200
  2. pkgver=2.60
  3. pkgrel=2
  4. pkgdesc="Canon IJ Printer Driver for PIXMA iP2200 (compatible to iP1600)"
  5. url="http://support-sg.canon-asia.com/contents/SG/EN/0900718701.html"
  6. arch=('i686' 'x86_64')
  7. license=('custom')
  8. if [ "${CARCH}" = 'x86_64' ]; then
  9.   depends=('lib32-libcups' 'lib32-popt' 'cnijfilter-common-3.00')
  10. elif [ "${CARCH}" = 'i686' ]; then
  11.   depends=('libcups' 'popt' 'cnijfilter-common-3.00' 'gtk' 'libtiff3' 'libxml')
  12. fi
  13. makedepends=('rpmextract')
  14. source=(http://gdlp01.c-wss.com/gds/7/0900007187/01/$pkgname-$pkgver-2.i386.rpm)
  15. md5sums=('f4112bdd717c2ecce9b999acdc50fa7e')
  16.  
  17. package(){
  18.         mkdir -p $pkgdir/usr/share
  19.         mkdir -p $pkgdir/usr/bin
  20. if [ "${CARCH}" = 'x86_64' ]; then
  21.         mkdir -p $pkgdir/usr/lib32/cups
  22. elif [ "${CARCH}" = 'i686' ]; then
  23.         mkdir -p $pkgdir/usr/lib/cups
  24. fi
  25.  
  26.         mv -v $srcdir/usr/share/* $pkgdir/usr/share
  27.         mv -v $srcdir/usr/local/* $pkgdir/usr/share
  28. if [ "${CARCH}" = 'x86_64' ]; then
  29.         mv -v $srcdir/usr/lib/* $pkgdir/usr/lib32/
  30. elif [ "${CARCH}" = 'i686' ]; then
  31.         mv -v $srcdir/usr/lib/* $pkgdir/usr/lib/
  32. fi
  33. }