# Contributor: 4javier <4 javiereg 4 at gmail dot com>
#based on http://aur.archlinux.org/packages.php?ID=30051
pkgname="brother-mfc-290c"
pkgver="1.1.2_2"
pkgrel=1
pkgdesc="LPR and CUPS driver for the Brother MFC-290c"
url="http://solutions.brother.com/linux/en_us/"
arch=('i686' 'x86_64')
license='unknown'
install='brother-mfc-290c.install'
depends=('tcsh' 'perl' 'cups')
source=(
"http://www.brother.com/pub/bsc/linux/dlf/mfc290clpr-${pkgver/_/-}.i386.deb"
"http://www.brother.com/pub/bsc/linux/dlf/mfc290ccupswrapper-${pkgver/_/-}.i386.deb"
)
md5sums=('3ec9601f3b5b81ad212d0baa61f72e16'
'c7df8015d87152cdddf01821f615842f'
)
build() {
ar x mfc290ccupswrapper-${pkgver/_/-}.i386.deb || return 1
mv control{,-cupswrapper}.tar.gz || return 1
mv data{,cupswrapper}.tar.gz || return 1
ar x mfc290clpr-${pkgver/_/-}.i386.deb
rm -f *.deb || return 1
cd $srcdir || return 1
[ -d "mfc290c" ] || (mkdir mfc290c || return 1)
for i in *.tar.gz;do tar xvvvfz $i -C mfc290c;done || return 1
cd mfc290c || return 1
cd usr/local/Brother/Printer/mfc290c || return 1
perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc290c || return 1
perl -i -pe 's#printcap.local#printcap#g' ./inf/setupPrintcapij || return 1
cp -rv $srcdir/mfc290c/usr/ $pkgdir/ || return 1
}
post_install() {
post_upgrade;
}
post_upgrade() {
printf "\033[1m\033[32mx3dx3dx3e\0331330m Configuring to make the driver work...n"
/usr/local/Brother/Printer/mfc290c/cupswrapper/cupswrappermfc290c >/dev/null
if [ "$?" -eq 0 ]; then
printf "\033[1m\033[32mx3dx3dx3e\0331330m Done. The printer should be visible now via the CUPS-webinterface (http://localhost:631)n"
else
printf "\033[1m\032[32mx3dx3dx3e\0331330m Something went wrong...n"
fi
}
Torna a Kernel e supporto hardware
Visitano il forum: Nessuno e 1 ospite