Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: chepaz <mx-bounce@gmx.net>
- model="j825dw"
- pkgname="brother-mfc-$model"
- pkgver="3.0.0"
- pkgrel=3
- _revision=1
- pkgdesc="LPR and CUPS driver for the Brother MFC-J825DW"
- url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
- arch=('i686' 'x86_64')
- license='unknown'
- install="brother-mfc-${model}.install"
- depends=('tcsh' 'deb2targz' 'perl' 'a2ps')
- source=("http://www.brother.com/pub/bsc/linux/dlf/mfc${model}lpr-${pkgver}-${_revision}.i386.deb"
- "http://www.brother.com/pub/bsc/linux/dlf/mfc${model}cupswrapper-${pkgver}-${_revision}.i386.deb")
- md5sums=('c6daa363fa49ad16fb407fa0b25a57f4'
- '8d355a72dfe8ccf727e58c591f30bf4a')
- build() {
- deb2targz *.deb >/dev/null || return 1
- rm -f *.deb || return 1
- cd $srcdir || return 1
- [ -d "mfc${model}" ] || (mkdir mfc${model} || return 1)
- for i in *.tar.gz;do tar xfz $i -C mfc${model};done || return 1
- cd mfc${model} || return 1
- cd opt/brother/Printers/mfc${model} || return 1
- perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc${model} || return 1
- perl -i -pe 's#printcap\.local#printcap#g' $srcdir/mfc${model}/opt/brother/Printers/mfc${model}/inf/setupPrintcapij || return 1
- cp -rf $srcdir/mfc${model}/usr/ $pkgdir/ || return 1
- cp -rf $srcdir/mfc${model}/opt/ $pkgdir/ || return 1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement