Advertisement
zerodahero

brother-mfc-j825dw Arch PKGBUILD

Aug 12th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. # Maintainer: chepaz <mx-bounce@gmx.net>
  2.  
  3. model="j825dw"
  4. pkgname="brother-mfc-$model"
  5. pkgver="3.0.0"
  6. pkgrel=3
  7. _revision=1
  8. pkgdesc="LPR and CUPS driver for the Brother MFC-J825DW"
  9. url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
  10. arch=('i686' 'x86_64')
  11. license='unknown'
  12. install="brother-mfc-${model}.install"
  13. depends=('tcsh' 'deb2targz' 'perl' 'a2ps')
  14. source=("http://www.brother.com/pub/bsc/linux/dlf/mfc${model}lpr-${pkgver}-${_revision}.i386.deb"
  15. "http://www.brother.com/pub/bsc/linux/dlf/mfc${model}cupswrapper-${pkgver}-${_revision}.i386.deb")
  16. md5sums=('c6daa363fa49ad16fb407fa0b25a57f4'
  17. '8d355a72dfe8ccf727e58c591f30bf4a')
  18.  
  19. build() {
  20. deb2targz *.deb >/dev/null || return 1
  21. rm -f *.deb || return 1
  22. cd $srcdir || return 1
  23. [ -d "mfc${model}" ] || (mkdir mfc${model} || return 1)
  24. for i in *.tar.gz;do tar xfz $i -C mfc${model};done || return 1
  25. cd mfc${model} || return 1
  26. cd opt/brother/Printers/mfc${model} || return 1
  27. perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc${model} || return 1
  28. perl -i -pe 's#printcap\.local#printcap#g' $srcdir/mfc${model}/opt/brother/Printers/mfc${model}/inf/setupPrintcapij || return 1
  29. cp -rf $srcdir/mfc${model}/usr/ $pkgdir/ || return 1
  30. cp -rf $srcdir/mfc${model}/opt/ $pkgdir/ || return 1
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement