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

PKGBUILD

By: GUiHKX on Dec 20th, 2011  |  syntax: Bash  |  size: 4.73 KB  |  views: 119  |  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. # Contributor: alessiofachechi <alessio.fachechi@gmail.com>
  2. # Special thanks to: olive
  3.  
  4. pkgname=cnijfilter-mp250
  5. pkgver=3.40.1
  6. pkgrel=2
  7. _pkgrealver=3.40
  8. _pkgrealrel=1
  9. pkgdesc="Canon IJ Printer Driver (MP250 series)"
  10. url="http://support-au.canon.com.au/contents/AU/EN/0100302002.html"
  11. arch=('i686' 'x86_64')
  12. license=('custom')
  13. depends=('libcups' 'cups' 'popt' 'ghostscript' 'gsfonts' 'atk>=1.9.0' 'gtk2>=2.8.0' 'pango>=1.12.3' 'libpng>=1.2.8' 'libtiff' 'cairo>=1.0.2' 'libxml2>=2.6.24' 'fontconfig>=2.3.0' 'libxinerama')
  14. makedepends=('autoconf>=2.13' 'automake>=1.6' 'tar' 'make' 'gcc')
  15. conflicts=('cnijfilter-common')
  16. install=cnijfilter-mp250.install
  17. source=('http://gdlp01.c-wss.com/gds/0/0100003020/01/cnijfilter-source-3.40-1.tar.gz'
  18.         'fix.patch')
  19. md5sums=('609975a05d6050fcca88f312d3f35c6a'
  20.          'd8dd2d723a15681a6092d506b5106047')
  21.  
  22. build() {
  23.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/
  24.   patch -p0 < ${startdir}/fix.patch
  25.  
  26.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/libs
  27.   ./autogen.sh --prefix=/usr --program-suffix=mp250
  28.   make || return 1
  29.   make install DESTDIR=${pkgdir} || return 1
  30.  
  31.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cngpij
  32.   ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
  33.   make || return 1
  34.   make install DESTDIR=${pkgdir} || return 1
  35.  
  36.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cnijfilter
  37.   ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
  38.   make || return 1
  39.   make install DESTDIR=${pkgdir} || return 1
  40.  
  41.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/pstocanonij
  42.   ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
  43.   make || return 1
  44.   make install DESTDIR=${pkgdir} || return 1
  45.  
  46.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/lgmon
  47.   ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
  48.   make || return 1
  49.   make install DESTDIR=${pkgdir} || return 1
  50.  
  51.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/ppd
  52.   ./autogen.sh --prefix=/usr --program-suffix=mp250
  53.   make || return 1
  54.   make install DESTDIR=${pkgdir} || return 1
  55.  
  56.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/cngpijmon/cnijnpr
  57.   ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin LIBS="-ldl"
  58.   make || return 1
  59.   make install DESTDIR=${pkgdir} || return 1
  60.  
  61.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/backend
  62.   ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
  63.   make || return 1
  64.   make install DESTDIR=${pkgdir} || return 1
  65.  
  66.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/backendnet
  67.   ./autogen.sh --prefix=/usr --program-suffix=mp250 --enable-progpath=/usr/bin
  68.   make || return 1
  69.   make install DESTDIR=${pkgdir} || return 1
  70.  
  71.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}
  72.   install -d ${pkgdir}/usr/lib/bjlib
  73.   install -m 755 356/database/* ${pkgdir}/usr/lib/bjlib
  74.  
  75.   if [ "$CARCH" == "x86_64" ]; then  
  76.     libdir=libs_bin64
  77.   else
  78.     libdir=libs_bin32
  79.   fi
  80.   install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcmcm356.so.8.0.1 ${pkgdir}/usr/lib/
  81.   install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcnclapi356.so.3.5.0 ${pkgdir}/usr/lib/
  82.   install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcnclbjcmd356.so.3.3.0 ${pkgdir}/usr/lib/
  83.   install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpcnclui356.so.3.6.0 ${pkgdir}/usr/lib/
  84.   install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpess356.so.3.3.3 ${pkgdir}/usr/lib/
  85.   install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpess356.so.3.3.3 ${pkgdir}/usr/lib/
  86.   install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/356/${libdir}/libcnbpo356.so.1.0.2 ${pkgdir}/usr/lib/
  87.   install -m 755 ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}/com/${libdir}/libcnnet.so.1.2.0 ${pkgdir}/usr/lib/
  88.   cd ${pkgdir}/usr/lib/
  89.   ln -s libcnbpcmcm356.so.8.0.1 libcnbpcmcm356.so
  90.   ln -s libcnbpcnclapi356.so.3.5.0 libcnbpcnclapi356.so
  91.   ln -s libcnbpcnclbjcmd356.so.3.3.0 libcnbpcnclbjcmd356.so
  92.   ln -s libcnbpcnclui356.so.3.6.0 libcnbpcnclui356.so
  93.   ln -s libcnbpess356.so.3.3.3 libcnbpess356.so
  94.   ln -s libcnbpo356.so.1.0.2 libcnbpo356.so
  95.   ln -s libcnnet.so.1.2.0 libcnnet.so
  96.  
  97.   cd ${srcdir}/cnijfilter-source-${_pkgrealver}-${_pkgrealrel}
  98.   install -D LICENSE-cnijfilter-${_pkgrealver}EN.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-cnijfilter-${_pkgrealver}EN.txt
  99. }