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 Nov 19th, 2011  |  syntax: None  |  size: 2.81 KB  |  views: 80  |  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: Steven She <mintcoffee@gmail.com>
  2. pkgname=cndrvcups-common
  3. pkgver=2.30
  4. pkgrel=1
  5. pkgdesc="Common printer driver modules for Canon printers"
  6. arch=('i686' 'x86_64')
  7. url="http://support-au.canon.com.au/contents/AU/EN/0100270808.html"
  8. license=('GPL')
  9. depends=('gtk2')
  10. makedepends=('rpmextract' 'automake' 'autoconf')
  11. source=('http://gdlp01.c-wss.com/gds/8/0100002708/04/Linux_UFRII_PrinterDriver_V230_uk_EN.tar.gz')
  12. options=('!emptydirs')
  13. md5sums=('b1b4fbccf1a5c66b4b9e0dd75ad9f9c8')
  14. build() {
  15.     unset LDFLAGS
  16.  
  17.     cd $srcdir/Linux_UFRII_PrinterDriver_V230_uk_EN/Sources
  18.     tar xf ${pkgname}-${pkgver}-${pkgrel}.tar.gz || return 1
  19.  
  20.     cd $pkgname-$pkgver
  21.  
  22.     (
  23.     cd cngplp
  24.     ./autogen.sh --prefix=/usr && \
  25.     make && \
  26.     make DESTDIR=${pkgdir} install
  27.     ) || return 1
  28.  
  29.     (
  30.     cd buftool
  31.     ./autogen.sh --prefix=/usr && \
  32.     make && \
  33.     make DESTDIR=${pkgdir} LIBDIR=/usr/lib install
  34.     ) || return 1
  35.  
  36.     #(
  37.     #cd cpca
  38.     #./autogen.sh --prefix=/usr && \
  39.     #make && \
  40.     #make DESTDIR=${pkgdir} LIBDIR=/usr/lib install
  41.     #) || return 1
  42.  
  43.     (
  44.     cd c3plmod_ipc
  45.     make && \
  46.     make DESTDIR=${pkgdir} LIBDIR=/usr/lib install
  47.     ) || return 1
  48.  
  49.  
  50.     #Taken debian install rules in package
  51.     #install -c -m 4755 libs/cnpkmodule $pkgdir/usr/bin
  52.     install -c -m 4755 libs/c3pldrv    $pkgdir/usr/bin
  53.  
  54.     install -c -m 755 libs/libcaiowrap.so.1.0.0 $pkgdir/usr/lib
  55.     install -c -m 755 libs/libcaiousb.so.1.0.0 $pkgdir/usr/lib
  56.     install -c -m 755 libs/libc3pl.so.0.0.1 $pkgdir/usr/lib
  57.     #install -c -m 755 libs/libcnaccm.so.1.0 $pkgdir/usr/lib
  58.     install -c -m 755 libs/libcaepcm.so.1.0 $pkgdir/usr/lib
  59.     #install -c -m 755 libs/libcnlbcm.so.1.0 $pkgdir/usr/lib
  60.     install -c -m 755 c3plmod_ipc/libcanonc3pl.so.1.0.0 $pkgdir/usr/lib
  61.     install -c -m 755 libs/libcanon_slim.so.1.0.0 $pkgdir/usr/lib
  62.  
  63.     (
  64.     cd $pkgdir/usr/lib/
  65.     ln -sf libc3pl.so.0.0.1 libc3pl.so.0
  66.     ln -sf libc3pl.so.0.0.1 libc3pl.so
  67.     #ln -sf libcnaccm.so.1.0 libcnaccm.so.1
  68.     #ln -sf libcnaccm.so.1.0 libcnaccm.so
  69.     ln -sf libcaepcm.so.1.0 libcaepcm.so.1
  70.     ln -sf libcaepcm.so.1.0 libcaepcm.so
  71.     #ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
  72.     #ln -sf libcnlbcm.so.1.0 libcnlbcm.so
  73.     ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so.1
  74.     ln -sf libcaiowrap.so.1.0.0 libcaiowrap.so
  75.     ln -sf libcaiousb.so.1.0.0 libcaiousb.so.1
  76.     ln -sf libcaiousb.so.1.0.0 libcaiousb.so
  77.     ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so.1
  78.     ln -sf libcanonc3pl.so.1.0.0 libcanonc3pl.so
  79.     ln -sf libcanon_slim.so.1.0.0 libcanon_slim.so.1
  80.     ln -sf libcanon_slim.so.1.0.0 libcanon_slim.so
  81.     ) || return 1
  82.  
  83.     mkdir -p $pkgdir/usr/share/caepcm
  84.     install -c -m 644 data/CA*    $pkgdir/usr/share/caepcm
  85.     install -c -m 644 data/CNZ0*  $pkgdir/usr/share/caepcm
  86. }
  87.  
  88.