summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD24
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2cc37b54a2d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = brother-dcpl2540dn-cups
+ pkgdesc = Brother DCP-L2540DN CUPS drivers.
+ pkgver = 3.2.0_1
+ pkgrel = 1
+ url = http://support.brother.com/g/b/downloadlist.aspx?c=nl&lang=nl&prod=dcpl2540dn_eu&os=127&flang=English
+ arch = any
+ license = GPL2
+ depends = brother-dcpl2540dn-lpr
+ depends = cups
+ source = http://download.brother.com/welcome/dlf101762/dcpl2540dncupswrapper-3.2.0-1.i386.rpm
+ md5sums = e1263b45814823fb2574fcfd06bfda1c
+
+pkgname = brother-dcpl2540dn-cups
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6219e374998
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Tijn <t_ijn at yahoo dot com>
+pkgname=brother-dcpl2540dn-cups
+pkgver=3.2.0_1
+pkgrel=1
+pkgdesc="Brother DCP-L2540DN CUPS drivers."
+arch=('any')
+url="http://support.brother.com/g/b/downloadlist.aspx?c=nl&lang=nl&prod=dcpl2540dn_eu&os=127&flang=English"
+license=('GPL2')
+depends=('brother-dcpl2540dn-lpr' 'cups')
+# optdepends=('brscan4: scanner support.')
+source=("http://download.brother.com/welcome/dlf101762/dcpl2540dncupswrapper-${pkgver/_/-}.i386.rpm")
+md5sums=('e1263b45814823fb2574fcfd06bfda1c')
+
+prepare() {
+ sed -ie '47,53c my $basedir = "/opt/brother/Printers/DCPL2540DN";' \
+ ${srcdir}/opt/brother/Printers/DCPL2540DN/cupswrapper/brother_lpdwrapper_DCPL2540DN
+}
+
+package() {
+ mkdir -p ${pkgdir}/usr/share/cups/model/Brother
+ mkdir -p ${pkgdir}/usr/lib/cups/filter
+ cp ${srcdir}/opt/brother/Printers/DCPL2540DN/cupswrapper/brother-DCPL2540DN-cups-en.ppd ${pkgdir}/usr/share/cups/model/Brother
+ cp ${srcdir}/opt/brother/Printers/DCPL2540DN/cupswrapper/brother_lpdwrapper_DCPL2540DN ${pkgdir}/usr/lib/cups/filter
+}