Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Steven S

By: a guest on Jun 29th, 2010  |  syntax: Bash  |  size: 2.84 KB  |  hits: 139  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. 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=1.80
  4. pkgrel=4
  5. pkgdesc="Common printer driver modules for Canon printers"
  6. arch=('i686' 'x86_64')
  7. url="http://www.canon.com.au/pps/colour/imagepress_c1_drivers.aspx"
  8. license=('GPL')
  9. depends=('libcups' 'cairo' 'freetype2' 'gtk2')
  10. makedepends=('rpmextract' 'automake' 'autoconf')
  11. source=('http://www.service.canon.com.au/drivers/files/ufr2linuxv180.zip')
  12. options=('!emptydirs')
  13. md5sums=('cc9e10655b42a0c19195c79d38e4d326')
  14. build() {
  15.     unset LDFLAGS
  16.  
  17.     cd $srcdir/ufr2linuxv180/Sources
  18.     tar xf ${pkgname}-${pkgver}-1.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 from Slacky SlackBuild by Michelino Chionchio - www.slacky.eu
  51.     #and debian install rules in package
  52.     install -c -m 4755 libs/cnpkmodule $pkgdir/usr/bin
  53.     install -c -m 4755 libs/c3pldrv    $pkgdir/usr/bin
  54.  
  55.     install -c -m 755 libs/libcaiowrap.so.1.0.0 $pkgdir/usr/lib
  56.     install -c -m 755 libs/libcaiousb.so.1.0.0 $pkgdir/usr/lib
  57.     install -c -m 755 libs/libc3pl.so.0.0.1 $pkgdir/usr/lib
  58.     install -c -m 755 libs/libcnaccm.so.1.0 $pkgdir/usr/lib
  59.     install -c -m 755 libs/libcaepcm.so.1.0 $pkgdir/usr/lib
  60.     install -c -m 755 libs/libcnlbcm.so.1.0 $pkgdir/usr/lib
  61.     install -c -m 755 c3plmod_ipc/libcanonc3pl.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.     ) || return 1
  80.  
  81.     mkdir -p $pkgdir/usr/share/caepcm
  82.     install -c -m 644 data/CA*    $pkgdir/usr/share/caepcm
  83.     install -c -m 644 data/CNZ0*  $pkgdir/usr/share/caepcm
  84.  
  85.     #install LICENSE
  86.     #mkdir -p $startdir/pkg/usr/licenses/$pkgname/
  87.     #install -Dm644 LICENSE-common-${pkgver}E.txt $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
  88. }