# Maintainer: # Contributor: Mark Wagie # Contributor: Jens Ott pkgname=brother-mfc-l8650cdw pkgver=1.1.3 pkgrel=1 _lpr_ver=1.1.2 _model=mfcl8650cdw pkgdesc="LPR and CUPS driver for the Brother MFC-L8850CDW" url="https://www.brother.com/" arch=('i686' 'x86_64') license=('unknown') install="$pkgname.install" depends=('tcsh' 'a2ps' 'lib32-libcups') makedepends=('perl') source=("https://download.brother.com/welcome/dlf101088/${_model}lpr-${_lpr_ver}-1.i386.deb" "https://download.brother.com/welcome/dlf101089/${_model}cupswrapper-${pkgver}-1.i386.deb") noextract=("${_model}lpr-${_lpr_ver}-1.i386.deb" "${_model}cupswrapper-${pkgver}-1.i386.deb") sha256sums=('3c9367b144c067f1c9e51b974f8c1e23a1294aa6fd572d4aa229af15ca066e10' 'c4bebc2939593ef155c74ad54f82329e7f6151bf9a208a012963b20d380de48a') prepare() { mkdir -p "${_model}lpr-${_lpr_ver}-1" ar x "${_model}lpr-${_lpr_ver}-1.i386.deb" --output="${_model}lpr-${_lpr_ver}-1" pushd "${_model}lpr-${_lpr_ver}-1" bsdtar xf data.tar.gz perl -i -pe 's#printcap\.local#printcap#g' "opt/brother/Printers/${_model}/inf/setupPrintcapij" popd mkdir -p "${_model}cupswrapper-${pkgver}-1" ar x "${_model}cupswrapper-${pkgver}-1.i386.deb" --output="${_model}cupswrapper-${pkgver}-1" pushd "$srcdir/${_model}cupswrapper-${pkgver}-1" bsdtar xf data.tar.gz perl -i -pe 's#/etc/init.d#/etc/rc.d#g' "opt/brother/Printers/${_model}/cupswrapper/cupswrapper${_model}" popd } package() { cp -r "${_model}lpr-${_lpr_ver}-1"/{opt,usr} "$pkgdir/" cp -r "${_model}cupswrapper-${pkgver}-1/opt" "$pkgdir/" }