diff options
author | core_contingency | 2019-08-07 15:17:03 -0700 |
---|---|---|
committer | core_contingency | 2019-08-07 15:17:03 -0700 |
commit | ac3cec37782cbb2348e61f3eac4362adbc511857 (patch) | |
tree | 7422da971588f0dc91e0eb366d810b54b269fd48 | |
download | aur-brother-mfc-9325cw.tar.gz |
new file: .SRCINFO
new file: PKGBUILD
new file: brother-mfc-9325cw.install
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | brother-mfc-9325cw.install | 12 |
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c7155545acd5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = brother-mfc-9325cw + pkgdesc = LPR and CUPS drivers for Brother MFC-9325CW + pkgver = 20190807 + pkgrel = 1 + url = https://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=mfc9325cw_us_as + install = brother-mfc-9325cw.install + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = perl + makedepends = a2ps + depends = lib32-libcups + depends = ghostscript + optdepends = brscan4: Scanner support + source = https://download.brother.com/welcome/dlf006466/mfc9325cwlpr-1.1.2-1.i386.deb + source = https://download.brother.com/welcome/dlf006468/mfc9325cwcupswrapper-1.1.2-2.i386.deb + sha512sums = b3c994cce7cf96d01e5aafa3167dbe4fece78c73110b57d441d270168b4f4a76dc44932bbbd17bc425fa6c0e93aec8df980daafda42645a2119d7a043edb4c65 + sha512sums = 7fccacc9fd863800c7d187f26efe0648e1a9400bc4a40c48fc6753466ea01baf1a074ee402008e1cea22edeb82bd85432ef55115898ee2ebaa353cde17d76d35 + +pkgname = brother-mfc-9325cw diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..83c933737253 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: core_contingency <ccontingency at gmail dot com> +# Credit goes to Migy and his package 'brother-mfc-9332cdw' for the original +# package, I just made minor changes. + +model="9325cw" +pkgname="brother-mfc-$model" +pkgver="20190807" +pkgrel=1 +lprver="1.1.2-1" +cwver="1.1.2-2" +pkgdesc="LPR and CUPS drivers for Brother MFC-9325CW" +url="https://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=mfc9325cw_us_as" +arch=('i686' 'x86_64') +license=('GPL2') +install="brother-mfc-${model}.install" +depends=('lib32-libcups' 'ghostscript') +makedepends=('perl' 'a2ps') +optdepends=('brscan4: Scanner support') +source=("https://download.brother.com/welcome/dlf006466/mfc${model}lpr-${lprver}.i386.deb" + "https://download.brother.com/welcome/dlf006468/mfc${model}cupswrapper-${cwver}.i386.deb") +sha512sums=('b3c994cce7cf96d01e5aafa3167dbe4fece78c73110b57d441d270168b4f4a76dc44932bbbd17bc425fa6c0e93aec8df980daafda42645a2119d7a043edb4c65' + '7fccacc9fd863800c7d187f26efe0648e1a9400bc4a40c48fc6753466ea01baf1a074ee402008e1cea22edeb82bd85432ef55115898ee2ebaa353cde17d76d35') + +package() { + ar x mfc${model}lpr-${lprver}.i386.deb && tar xzvf data.tar.gz + ar x mfc${model}cupswrapper-${cwver}.i386.deb && tar xzvf data.tar.gz + + cd opt/brother/Printers/mfc${model} + perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc${model} + 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-9325cw.install b/brother-mfc-9325cw.install new file mode 100644 index 000000000000..99c6a5facb7e --- /dev/null +++ b/brother-mfc-9325cw.install @@ -0,0 +1,12 @@ +post_install() { + post_upgrade; +} + +post_upgrade() { + /opt/brother/Printers/mfc9325cw/cupswrapper/cupswrappermfc9325cw >/dev/null + if [ "$?" -eq 0 ]; then + printf "\033[1m\033[32m\x3d\x3d\x3e\033\1330m Done. The printer should be visible now via the CUPS-webinterface (http://localhost:631)\n" + else + printf "\033[1m\032[32m\x3d\x3d\x3e\033\1330m Something went wrong...\n" + fi +} |