Username: Password: Remember me
# Thanks to  Jeremy Sands <cto@jeremysands.com>
# Maintainer: tomaggio <tomomelley@gmx.de>
 
pkgname=canon-pixma-mx510-complete
pkgver=3.70
pkgrel=1
pkgdesc="Complete stand alone driver set (printing and scanning) for Canon Pixma MX510 series"
url="http://www.canon-europe.com/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MX_series/PIXMA_MX515.aspx"
arch=('x86_64')
license=('custom')
if [ ${CARCH} = 'x86_64' ]; then
  depends=('libcups' 'popt' 'libpng12' 'libusb-compat' 'libtiff' 'gtk2')
fi
makedepends=('deb2targz')
source=('http://gdlp01.c-wss.com/gds/0/0100004120/01/cnijfilter-mx510series-3.70-1-deb.tar.gz'
	'http://gdlp01.c-wss.com/gds/2/0100004132/01/scangearmp-mx510series-1.90-1-deb.tar.gz')
md5sums=('fea3347d975f0d7db287aa9a0de5a4d0'
	'a41e42fca48c11a3ac4d1cf91c017ccb')
 
package() {
  cd ${srcdir}/cnijfilter-mx510series-3.70-1-deb/packages/
  install cnijfilter-common_3.70-1_amd64.deb ${pkgdir}
  install cnijfilter-mx510series_3.70-1_amd64.deb ${pkgdir}
 
  cd ${srcdir}/scangearmp-mx510series-1.90-1-deb/packages
  install scangearmp-common_1.90-1_amd64.deb ${pkgdir}
  install scangearmp-mx510series_1.90-1_amd64.deb ${pkgdir}
 
  cd ${pkgdir}
  deb2targz cnijfilter-common_3.70-1_amd64.deb
  tar -xvf cnijfilter-common_3.70-1_amd64.tar.gz
  rm cnijfilter-common_3.70-1_amd64.deb
  rm cnijfilter-common_3.70-1_amd64.tar.gz
 
  deb2targz cnijfilter-mx510series_3.70-1_amd64.deb
  tar -xvf cnijfilter-mx510series_3.70-1_amd64.tar.gz
  rm cnijfilter-mx510series_3.70-1_amd64.deb
  rm cnijfilter-mx510series_3.70-1_amd64.tar.gz
 
  deb2targz scangearmp-common_1.90-1_amd64.deb
  tar -xvf scangearmp-common_1.90-1_amd64.tar.gz
  rm scangearmp-common_1.90-1_amd64.deb
  rm scangearmp-common_1.90-1_amd64.tar.gz
 
  deb2targz scangearmp-mx510series_1.90-1_amd64.deb
  tar -xvf scangearmp-mx510series_1.90-1_amd64.tar.gz
  rm scangearmp-mx510series_1.90-1_amd64.deb
  rm scangearmp-mx510series_1.90-1_amd64.tar.gz
 
        ln -sf ${pkgdir}/usr/lib/libcnbpcnclui398.so.3.7.0 ${pkgdir}/usr/lib/libcnbpcnclui398.so
	ln -sf ${pkgdir}/usr/lib/libcnbpcmcm398.so.8.10.1 ${pkgdir}/usr/lib/libcnbpc
	ln -sf ${pkgdir}/usr/lib/libcnbpcmcm398.so.8.10.1 ${pkgdir}/usr/lib/libcnbpcmcm398.so
	ln -sf ${pkgdir}/usr/lib/libcnbpcnclapi398.so.3.7.0 ${pkgdir}/usr/lib/libcnbpcnclapi398.so
	ln -sf ${pkgdir}/usr/lib/libcnbpcnclbjcmd398.so.3.3.0 ${pkgdir}/usr/lib/libcnbpcnclbjcmd398.so
	ln -sf ${pkgdir}/usr/lib/libcnbpess398.so.4.1.3 ${pkgdir}/usr/lib/libcnbpess398.so
	ln -sf ${pkgdir}/usr/lib/libcnnet.so.1.2.2 ${pkgdir}/usr/lib/libcnnet.so
 
	ln -sf ${pkgdir}/usr/lib/libcnbpo398.so.1.0.4 ${pkgdir}/usr/lib/libcnbpo398.so
	ln -sf ${pkgdir}/usr/lib/libcncpmslld.so.1.0.1 ${pkgdir}/usr/lib/libcncpmslld.so
	ln -sf ${pkgdir}/usr/lib/libcncpmslld398.so.1.9.0 ${pkgdir}/usr/lib/libcncpmslld398.so
	ln -sf ${pkgdir}/usr/lib/libcncpmslld398c.so.1.04.1 ${pkgdir}/usr/lib/libcncpmslld398c.so
	ln -sf ${pkgdir}/usr/lib/libcncpcmcm.so.8.0.1 ${pkgdir}/usr/lib/libcncpcmcm.so
	ln -sf ${pkgdir}/usr/lib/libcncpmsimg398.so.1.9.0 ${pkgdir}/usr/lib/libcncpmsimg398.so
	ln -sf ${pkgdir}/usr/lib/libcncpmsimg.so.1.0.2 ${pkgdir}/usr/lib/libcncpmsimg.so
	ln -sf ${pkgdir}/usr/lib/libtiff.so.5.2.4 ${pkgdir}/usr/lib/libtiff.so.4
 
  cd $pkgdir
 
  make DESTDIR=$pkgdir install -vd
 
}