diff options
author | Andreas Schreiner | 2015-10-15 22:45:15 +0200 |
---|---|---|
committer | Andreas Schreiner | 2015-10-15 22:45:15 +0200 |
commit | 9a2b8b7eb3779593ef3c8470b99229799839ac95 (patch) | |
tree | ca48634ce597fe5b2dc0d7d2a371fe9b1fe634c1 /PKGBUILD | |
download | aur-9a2b8b7eb3779593ef3c8470b99229799839ac95.tar.gz |
Driver for the Brother MFC-9140 Multifunctional Printer/Scanner Series
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bab1f878864b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +model="9140cdn" +pkgname="brother-mfc-$model" +pkgver="1.1.2" +pkgrel=1 +_revision=1 +pkgdesc="LPR and CUPS driver for the Brother MFC-9140CDN" +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=('deb2targz' 'perl') +source=("http://download.brother.com/welcome/dlf100405/mfc${model}lpr-${pkgver}-${_revision}.i386.deb" + "http://download.brother.com/welcome/dlf100407/mfc${model}cupswrapper-${pkgver}-${_revision}.i386.deb") +sha256sums=('90eae54a7201c369ddc6c3999af24c9c8de7b2c72061ba0773e8809da5451df3' + '6eccd08ce0fb57f59def431114913c35c738c7497053dbf649efd1d041c3d919') + +package() { + 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 +} |