diff options
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | brother-dcp-9020cdw.install | 12 |
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..53fe60e805b6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by makepkg 4.2.1 +# Thu Mar 19 17:00:47 UTC 2015 +pkgbase = brother-dcp-9020cdw + pkgdesc = LPR and CUPS driver for the Brother DCP-9020CDW + pkgver = 1.1.2 + pkgrel = 1 + url = http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html + install = brother-dcp-9020cdw.install + arch = i686 + arch = x86_64 + license = unknown + depends = tcsh + depends = deb2targz + depends = perl + depends = a2ps + source = http://www.brother.com/pub/bsc/linux/dlf/dcp9020cdwlpr-1.1.2-1.i386.deb + source = http://www.brother.com/pub/bsc/linux/dlf/dcp9020cdwcupswrapper-1.1.2-1.i386.deb + md5sums = d7fb28e4d73d56b1181833787968d0fb + md5sums = 51394c2c90d5c642758d0e0f6eee73e0 + +pkgname = brother-dcp-9020cdw + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..de479c411e81 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: dk0r <dk0r.public@gmail.com> + +model="9020cdw" +pkgname="brother-dcp-$model" +pkgver="1.1.2" +pkgrel=1 +_revision=1 +pkgdesc="LPR and CUPS driver for the Brother DCP-9020CDW" +url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html" +arch=('i686' 'x86_64') +license='unknown' +install="brother-dcp-${model}.install" +depends=('tcsh' 'deb2targz' 'perl' 'a2ps') +source=("http://www.brother.com/pub/bsc/linux/dlf/dcp${model}lpr-${pkgver}-${_revision}.i386.deb" + "http://www.brother.com/pub/bsc/linux/dlf/dcp${model}cupswrapper-${pkgver}-${_revision}.i386.deb") +md5sums=('d7fb28e4d73d56b1181833787968d0fb' + '51394c2c90d5c642758d0e0f6eee73e0') +package() { + deb2targz *.deb >/dev/null || return 1 + rm -f *.deb || return 1 + cd $srcdir || return 1 + [ -d "dcp${model}" ] || (mkdir dcp${model} || return 1) + for i in *.tar.gz;do tar xfz $i -C dcp${model};done || return 1 + cd dcp${model} || return 1 + cd opt/brother/Printers/dcp${model} || return 1 + perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrapperdcp${model} || return 1 + perl -i -pe 's#printcap\.local#printcap#g' $srcdir/dcp${model}/opt/brother/Printers/dcp${model}/inf/setupPrintcapij || return 1 + cp -rf $srcdir/dcp${model}/usr/ $pkgdir/ || return 1 + cp -rf $srcdir/dcp${model}/opt/ $pkgdir/ || return 1 +} diff --git a/brother-dcp-9020cdw.install b/brother-dcp-9020cdw.install new file mode 100644 index 000000000000..28976fb982f8 --- /dev/null +++ b/brother-dcp-9020cdw.install @@ -0,0 +1,12 @@ +post_install() { + post_upgrade; +} + +post_upgrade() { + /opt/brother/Printers/dcp9020cdw/cupswrapper/cupswrapperdcp9020cdw >/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 +} |