summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeylerius2016-11-22 13:34:21 -0800
committerSeylerius2016-11-22 13:34:21 -0800
commit67a531d7efd4f534017d681548c2b9c5b10fcd73 (patch)
treedf4d45d24bb844684470253b2fae4e008c747fae
downloadaur-67a531d7efd4f534017d681548c2b9c5b10fcd73.tar.gz
Modified dno's brother-mfc-j625dw for the MFC 9460cdn
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD40
-rw-r--r--brother-mfc-9460cdn.install12
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bf5f05107c5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = brother-mfc-9460cdn
+ pkgdesc = LPR and CUPS driver for the Brother MFC-9460CDN
+ pkgver = 1.1.1
+ pkgrel = 1
+ url = http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html
+ install = brother-mfc-9460cdn.install
+ arch = i686
+ arch = x86_64
+ license = unknown
+ depends = tcsh
+ depends = deb2targz
+ depends = perl
+ depends = a2ps
+ depends = lib32-glibc
+ source = http://www.brother.com/pub/bsc/linux/dlf/mfc9460cdnlpr-1.1.1-5.i386.deb
+ source = http://www.brother.com/pub/bsc/linux/dlf/mfc9460cdncupswrapper-1.1.1-5.i386.deb
+ md5sums = 5c6e7ca447ee3c9d135d9fa9f2a2a469
+ md5sums = 7d6449e7cc163e5ccc6b83d34af46743
+
+pkgname = brother-mfc-9460cdn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7f3ee1f31f8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Dino Morelli <dino@ui3.info>
+# Based on brother-mfc-j6510dw package from AUR
+
+_model="9460cdn"
+pkgname="brother-mfc-$_model"
+pkgver="1.1.1"
+pkgrel=1
+pkgdesc="LPR and CUPS driver for the Brother MFC-9460CDN"
+arch=('i686' 'x86_64')
+url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
+license=('unknown')
+depends=('tcsh' 'deb2targz' 'perl' 'a2ps')
+if test "$CARCH" == x86_64; then
+ depends+=(lib32-glibc)
+fi
+install="brother-mfc-${_model}.install"
+_revision=5
+
+source=("http://www.brother.com/pub/bsc/linux/dlf/mfc${_model}lpr-${pkgver}-${_revision}.i386.deb"
+ "http://www.brother.com/pub/bsc/linux/dlf/mfc${_model}cupswrapper-${pkgver}-${_revision}.i386.deb")
+
+md5sums=('5c6e7ca447ee3c9d135d9fa9f2a2a469'
+ '7d6449e7cc163e5ccc6b83d34af46743')
+
+build() {
+ 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
+}
+
+package() {
+ cp -rf $srcdir/mfc${_model}/usr/ $pkgdir/ || return 1
+ cp -rf $srcdir/mfc${_model}/opt/ $pkgdir/ || return 1
+}
diff --git a/brother-mfc-9460cdn.install b/brother-mfc-9460cdn.install
new file mode 100644
index 00000000000..502f652f0ec
--- /dev/null
+++ b/brother-mfc-9460cdn.install
@@ -0,0 +1,12 @@
+post_install() {
+ post_upgrade;
+}
+
+post_upgrade() {
+ /opt/brother/Printers/mfc9460cdn/cupswrapper/cupswrappermfc9460cdn >/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
+}