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 Mar 23rd, 2013  |  syntax: Bash  |  size: 0.69 KB  |  views: 54  |  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-common
  2. pkgver=3.80
  3. pkgrel=1
  4. pkgdesc="Canon IJ Printer Driver (Common package)"
  5. arch=('i686' 'x86_64')
  6. url="http://support-sg.canon-asia.com/contents/SG/EN/0100467102.html"
  7. license=('unknown')
  8. depends=('libcups' 'popt')
  9. makedepends=('rpmextract')
  10. options=('emptydirs')
  11. source=("http://gdlp01.c-wss.com/gds/1/0100004671/01/cnijfilter-mg5400series-3.80-1-rpm.tar.gz")
  12. md5sums=('e76ff321213bca10ae33aef9f162c301')
  13.  
  14. build() {
  15.   if [ "${CARCH}" = 'x86_64' ]; then
  16.     rpmfile=$(find "$srcdir" -name $pkgname-$pkgver*${CARCH}*.rpm)
  17.   elif [ "${CARCH}" = 'i686' ]; then
  18.     rpmfile=$(find "$srcdir" -name $pkgname-$pkgver*i386*.rpm)
  19.   fi
  20.   cd $pkgdir
  21.   rpmextract.sh $rpmfile
  22. }