summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcore_contingency2020-01-23 20:58:55 -0700
committercore_contingency2020-01-23 20:58:55 -0700
commitafabc0a098a5f0184a654f3ff17f65bf9cbd3bec (patch)
treefe53938ed89c55d9cf9bf997c1fbc0d4cec17274
downloadaur-afabc0a098a5f0184a654f3ff17f65bf9cbd3bec.tar.gz
initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD33
-rw-r--r--brother-mfc-7360n.install12
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5e87b0febf1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = brother-mfc-7360n
+ pkgdesc = LPR and CUPS drivers for Brother MFC-9360n
+ pkgver = 20200123
+ pkgrel = 1
+ url = https://support.brother.com/g/b/producttop.aspx?c=us&lang=en&prod=mfc7360n_all
+ install = brother-mfc-7360n.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/dlf006237/mfc7360nlpr-2.1.0-1.i386.deb
+ source = https://download.brother.com/welcome/dlf006239/cupswrapperMFC7360N-2.0.4-2.i386.deb
+ sha512sums = f3121fbe5aad77be6ebfc7425da9ffc11f65ee2eab34cece8d93c55ae6e912267d94395822af553979873d99cb5b3fe0ff119ea50e2cfb0ef4efb8d23b49cac4
+ sha512sums = 89c401b5e892e03f01d71f4fb64c74de98692cd5a1adced606906cdc81ddae80bf846a48d6dab157fc631cfcfd4414d4b05fe5d905de1f144f5766d4de2a6f7f
+
+pkgname = brother-mfc-7360n
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..68cb179cc4b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# 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="7360n"
+pkgname="brother-mfc-$model"
+pkgver="20200123"
+pkgrel=1
+lprver="2.1.0-1"
+cwver="2.0.4-2"
+pkgdesc="LPR and CUPS drivers for Brother MFC-7360n"
+url="https://support.brother.com/g/b/producttop.aspx?c=us&lang=en&prod=mfc7360n_all"
+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/dlf006237/mfc${model}lpr-${lprver}.i386.deb"
+ "https://download.brother.com/welcome/dlf006239/cupswrapperMFC7360N-${cwver}.i386.deb")
+sha512sums=('f3121fbe5aad77be6ebfc7425da9ffc11f65ee2eab34cece8d93c55ae6e912267d94395822af553979873d99cb5b3fe0ff119ea50e2cfb0ef4efb8d23b49cac4'
+ '89c401b5e892e03f01d71f4fb64c74de98692cd5a1adced606906cdc81ddae80bf846a48d6dab157fc631cfcfd4414d4b05fe5d905de1f144f5766d4de2a6f7f')
+
+package() {
+ ar x mfc${model}lpr-${lprver}.i386.deb && tar xzvf data.tar.gz
+ ar x cupswrapperMFC7360N-${cwver}.i386.deb && tar xzvf data.tar.gz
+
+ cd usr/local/Brother/Printer/MFC7360N
+ perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrapperMFC7360N-2.0.4
+ perl -i -pe 's#printcap\.local#printcap#g' ./inf/setupPrintcap2
+
+ cp -rf $srcdir/usr/ $pkgdir/
+}
diff --git a/brother-mfc-7360n.install b/brother-mfc-7360n.install
new file mode 100644
index 00000000000..72d9702047c
--- /dev/null
+++ b/brother-mfc-7360n.install
@@ -0,0 +1,12 @@
+post_install() {
+ post_upgrade;
+}
+
+post_upgrade() {
+ /usr/local/Brother/Printer/MFC7360N/cupswrapper/cupswrapperMFC7360N-2.0.4 >/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
+}