diff options
author | Kiet To | 2019-02-20 21:39:28 +1030 |
---|---|---|
committer | Kiet To | 2019-02-20 21:39:28 +1030 |
commit | 98249a74b366b13d77e6d2032da635f53c0ab94a (patch) | |
tree | 87dbd62471dff3beb44f3a025be058eb0940b3ef | |
download | aur-98249a74b366b13d77e6d2032da635f53c0ab94a.tar.gz |
Initial commit for driver version 1.0.2-0
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | brother-mfc-l3770cdw.install | 15 |
4 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f17e88a3aa3a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = brother-mfc-l3770cdw + pkgdesc = LPR and CUPS drivers for the Brother MFC-L3770CDW + pkgver = 1.0.2 + pkgrel = 0 + url = http://support.brother.com/g/s/id/linux/en/index.html + install = brother-mfc-l3770cdw.install + arch = i686 + arch = x86_64 + license = custom:brother + license = GPL + makedepends = perl + makedepends = tar + depends = cups + source = https://download.brother.com/welcome/dlf103935/mfcl3770cdwpdrv-1.0.2-0.i386.deb + md5sums = ec927721bea8a717940a76d09d546e95 + +pkgname = brother-mfc-l3770cdw + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ac04145b3eb7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/src/ +/pkg/ +*.pkg.tar.xz +*.deb diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..29043ebad088 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Contributor: Felix Walter <code at felix dash walter dot eu> +# This uses modified code from package brother-mfc-9335cdw by Leo Pham <regretfulumbrella at gmail dot com> + +pkgname=brother-mfc-l3770cdw +pkgver=1.0.2 +pkgrel=0 +pkgdesc='LPR and CUPS drivers for the Brother MFC-L3770CDW' +arch=('i686' 'x86_64') +url='http://support.brother.com/g/s/id/linux/en/index.html' +license=('custom:brother' 'GPL') +depends=('cups') +makedepends=('perl' 'tar') +install='brother-mfc-l3770cdw.install' +source=('https://download.brother.com/welcome/dlf103935/mfcl3770cdwpdrv-1.0.2-0.i386.deb') +md5sums=('ec927721bea8a717940a76d09d546e95') + +package() { + ar x mfcl3770cdwpdrv-1.0.2-0.i386.deb && tar xzvf data.tar.gz + + # Patch filenames to work on Arch + cd opt/brother/Printers/mfcl3770cdw + perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfcl3770cdw + perl -i -pe 's#printcap\.local#printcap#g' ./inf/setupPrintcapij + + cp -rf $srcdir/usr/ $pkgdir/ + cp -rf $srcdir/opt/ $pkgdir/ +} diff --git a/brother-mfc-l3770cdw.install b/brother-mfc-l3770cdw.install new file mode 100644 index 000000000000..78020ecb5c11 --- /dev/null +++ b/brother-mfc-l3770cdw.install @@ -0,0 +1,15 @@ +post_install() { + post_upgrade; +} + +post_upgrade() { + /opt/brother/Printers/mfcl3770cdw/cupswrapper/cupswrappermfcl3770cdw > /dev/null + if [ "$?" -eq 0 ]; then + printf "\033[1m\033[32m\x3d\x3d\x3e\033\1330m Done. The printer should be visible now via " + printf "the CUPS web interface (http://localhost:631).\n" + printf "\033[1m\033[32m\x3d\x3d\x3e\033\1330m Make sure org.cups.cupsd.service is enabled " + printf "and started, in order for printing to work.\n" + else + printf "\033[1m\032[32m\x3d\x3d\x3e\033\1330m Something went wrong...\n" + fi +} |